-
Notifications
You must be signed in to change notification settings - Fork 163
infra: add in PR labeler workflow #1229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| # https://github.com/actions/labeler | ||
|
|
||
| documentation: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'doc/**' | ||
| - 'README.md' | ||
| - 'CHANGELOG.md' | ||
| - 'CONTRIBUTING.md' | ||
| - 'PUBLICATIONS.md' | ||
| - '*.rst' | ||
|
|
||
| circuits: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/circuits/**' | ||
|
|
||
| aws: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/aws/**' | ||
|
|
||
| devices: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/devices/**' | ||
|
|
||
| jobs: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/jobs/**' | ||
|
|
||
| ahs: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/ahs/**' | ||
|
|
||
| pulse: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/pulse/**' | ||
|
|
||
| annealing: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/annealing/**' | ||
|
Comment on lines
+43
to
+46
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. curious about how you chose which folders to include labels for vs. not? Some folders (e.g. parametric, registers, tasks, tracking, timings, experimental_capabilities) are not included in this list. Is it worth having a label for every folder, or should we perhaps have an "other source" label for folders we don't expect to change much? |
||
|
|
||
| emulation: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/emulation/**' | ||
|
|
||
| error-mitigation: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/error_mitigation/**' | ||
|
|
||
| visualization: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/visualization/**' | ||
|
Comment on lines
+58
to
+61
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this folder doesn't exist in the |
||
|
|
||
| quantum-information: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/quantum_information/**' | ||
|
|
||
| program-sets: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'src/braket/program_sets/**' | ||
|
|
||
| tests: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This may be a bit overdone to include. I can keep or delete depending on where other opinions fall
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's fine, it may be noisy but there may be some test-only PRs which would be nice to have a label for. |
||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'test/**' | ||
|
|
||
| CI: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - '.github/**' | ||
| - 'tox.ini' | ||
| - '.pre-commit-config.yaml' | ||
| - '.coveragerc' | ||
|
Comment on lines
+80
to
+84
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add |
||
|
|
||
| build: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'setup.py' | ||
| - 'setup.cfg' | ||
| - 'pyproject.toml' | ||
| - 'MANIFEST.in' | ||
|
|
||
| examples: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - 'examples/**' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: Labeler | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: [opened, synchronize, reopened] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| label: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/labeler@v5 | ||
| with: | ||
| sync-labels: true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with this |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*.mdperhaps?