Skip to content

Commit

Permalink
automatically add labels to pull requests based on changed files (#111)
Browse files Browse the repository at this point in the history
* automatically add labels to pull requests based on changed files

* remove `GLS` labeling (part of ramp fitting)
  • Loading branch information
zacharyburnett committed Jul 28, 2022
1 parent 6262cda commit 066b4da
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
documentation:
- 'docs/**/*'
- any: [ '*.rst', '!CHANGES.rst' ]
- '*.md'
- '.readthedocs.yml'
- 'LICENSE'

installation:
- 'pyproject.toml'
- 'setup.*'
- 'requirements-*.txt'
- 'MANIFEST.in'

# --------------------------------------- testing ---------------------------------------

automation:
- '.github/**'
- '.bandit.yaml'
- '.codecov.yml'

testing:
- '**/tests/**'
- '.github/workflows/ci*.yml'
- 'conftest.py'

# --------------------------------------- modules ---------------------------------------

dark_current:
- '**/*dark_current*'
- '**/*dark_current*/**'

jump:
- '**/*jump*'
- '**/*jump*/**'

linearity:
- '**/*linearity*'
- '**/*linearity*/**'

ramp_fitting:
- '**/*ramp_fitting*'
- '**/*ramp_fitting*/**'

saturation:
- '**/*saturation*'
- '**/*saturation*/**'
16 changes: 16 additions & 0 deletions .github/workflows/label_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: label pull request

on:
pull_request_target:
types:
- opened
- synchronize

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request'
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 066b4da

Please sign in to comment.