Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions .github/labeler.yml
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'
Comment on lines +7 to +10
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*.md perhaps?

- '*.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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this folder doesn't exist in the main branch


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:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add bin/** here?


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/**'
17 changes: 17 additions & 0 deletions .github/workflows/labeler.yml
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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this

Loading