Skip to content

infra: add in PR labeler workflow#1229

Open
AbeCoull wants to merge 1 commit intomainfrom
labeler
Open

infra: add in PR labeler workflow#1229
AbeCoull wants to merge 1 commit intomainfrom
labeler

Conversation

@AbeCoull
Copy link
Contributor

Issue #, if available:

Description of changes:

Adds in automatic labeling for PRs. For coloring the Labels or adding description, this will be done after the code is merged.

Testing done:

Used in a personal repo already. Example: https://github.com/AbeCoull/prism-q/pull/3

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

Tests

  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have checked that my tests are not configured for a specific region or account (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@AbeCoull AbeCoull requested review from rmshaffer and speller26 March 11, 2026 16:12
@AbeCoull AbeCoull requested a review from a team as a code owner March 11, 2026 16:12
- any-glob-to-any-file:
- 'src/braket/program_sets/**'

tests:
Copy link
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
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.

@AbeCoull AbeCoull changed the title ci: add in PR labeler workflow infra: add in PR labeler workflow Mar 11, 2026
@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ca26dfa) to head (da81fa6).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1229   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          169       169           
  Lines        10835     10835           
  Branches      1382      1382           
=========================================
  Hits         10835     10835           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- any-glob-to-any-file:
- 'src/braket/program_sets/**'

tests:
Copy link
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.

steps:
- uses: actions/labeler@v5
with:
sync-labels: true
Copy link
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

Comment on lines +43 to +46
annealing:
- changed-files:
- any-glob-to-any-file:
- 'src/braket/annealing/**'
Copy link
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?

Comment on lines +58 to +61
visualization:
- changed-files:
- any-glob-to-any-file:
- 'src/braket/visualization/**'
Copy link
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

Comment on lines +80 to +84
- any-glob-to-any-file:
- '.github/**'
- 'tox.ini'
- '.pre-commit-config.yaml'
- '.coveragerc'
Copy link
Contributor

Choose a reason for hiding this comment

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

add bin/** here?

Comment on lines +7 to +10
- 'README.md'
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'PUBLICATIONS.md'
Copy link
Contributor

Choose a reason for hiding this comment

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

*.md perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants