-
Notifications
You must be signed in to change notification settings - Fork 99
[PM-39788] Add workflow to automatically label a PR by change type #1197
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
Merged
djsmith85
merged 4 commits into
main
from
ps/pm-39788/add-workflow-to-automatically-label-a-pr-by-change-type
Jul 30, 2026
+50
β0
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
dccc2c8
Add workflow to automatically label a PR by change type
djsmith85 3d5db7f
Remove "scripts/" from t:ci
djsmith85 d43a4da
Match version of actions/checkout with the other usages in the repo
djsmith85 b2401fa
Remove feature-flag entry as the label isn't present on the DC repo
djsmith85 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "title_patterns": { | ||
| "t:feature": ["feat", "feature", "tool"], | ||
| "t:bugfix": ["fix", "bug", "bugfix"], | ||
| "t:tech-debt": ["refactor", "chore", "cleanup", "revert", "debt", "test", "perf"], | ||
| "t:docs": ["docs"], | ||
| "t:ci": ["ci", "build", "chore(ci)"], | ||
| "t:deps": ["deps", "[deps]"], | ||
| "t:breaking-change": ["breaking", "breaking-change"], | ||
| "t:misc": ["misc"], | ||
| "t:llm": ["llm"] | ||
| }, | ||
| "path_patterns": { | ||
| "t:feature": [], | ||
| "t:tech-debt": [], | ||
| "t:ci": [".checkmarx/", ".github/"], | ||
| "t:docs": ["README.md", "CONTRIBUTING.md", "SECURITY.md"], | ||
| "t:deps": [], | ||
| "t:llm": [".claude/"] | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Label PR | ||
| run-name: Label PR #${{ github.event.pull_request.number }} | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| label: | ||
| name: Label PR | ||
| runs-on: ubuntu-24.04 | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
| steps: | ||
| - name: Check out repo | ||
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||
| with: | ||
| persist-credentials: false | ||
|
Copilot marked this conversation as resolved.
|
||
|
|
||
| - name: Label PR | ||
| uses: bitwarden/gh-actions/auto-label-pr-sdlc@main | ||
| with: | ||
| pr-number: ${{ github.event.pull_request.number }} | ||
| pr-labels: ${{ toJSON(github.event.pull_request.labels) }} | ||
| mode: add | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.