-
Notifications
You must be signed in to change notification settings - Fork 119
chore: Contribution labeller #4104
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
Merged
Changes from 26 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e0ae9c0
chore(ci): add contribution labeler
krisantrobus 801b1dd
chore(ci): update env var
krisantrobus 21a87a4
chore(ci): update triggers
krisantrobus 5aae6cd
chore(ci): update username var
krisantrobus a0f846e
chore(ci): update env
krisantrobus 4bbe2dc
chore(ci): debug step
krisantrobus 759d6a8
chore(ci): update teams
krisantrobus c146b33
chore(ci): debug
krisantrobus e7028ff
chore(ci): wip
krisantrobus 4acef7d
chore(ci): wip
krisantrobus d84104d
chore(ci): wip
krisantrobus 8c9e35b
chore(ci): wip
krisantrobus cd6c4cf
chore(ci): wip
krisantrobus 795d062
chore(ci): update ver
krisantrobus 3373b79
chore(ci): wip
krisantrobus f0f161f
chore(ci): wip
krisantrobus 3bbf17b
chore(ci): wip
krisantrobus 365b0c5
chore(ci): wip
krisantrobus b35a890
chore(ci): wip
krisantrobus 2948c44
chore(ci): wip
krisantrobus a95b220
chore(ci): wip
krisantrobus 78a01ee
chore(ci): final imp
krisantrobus 2e4f446
chore(ci): final test
krisantrobus a857058
chore(ci): final impl
krisantrobus f9d8608
chore(ci): change ton only fire on open
krisantrobus 8979108
chore(ci): spelling update
krisantrobus 321b087
chore(deps): update ubuntu version
krisantrobus 7c1d3ec
Merge branch 'main' into contribution-labeler
kodiakhq[bot] 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
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,6 @@ | ||
# https://github.com/actions/labeler | ||
|
||
# Add 'Contribution' label to any opened PR when author external to team | ||
"Contribution": | ||
- changed-files: | ||
- any-glob-to-any-file: "*/**" |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -5,13 +5,30 @@ on: | |
types: [opened] | ||
|
||
jobs: | ||
pr-triage: | ||
pr-context-labeler: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Auto labeller | ||
uses: actions/labeler@v4 | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check user for team affiliation | ||
uses: tspascoal/get-user-teams-membership@v2 | ||
id: teamAffiliation | ||
with: | ||
GITHUB_TOKEN: "${{ secrets.PAT_GH_READ_ORG }}" | ||
username: "${{ github.actor }}" | ||
# List of all teams for dsys | ||
team: "[Design Systems PD,design-systems,Design Systems Eng,Design Systems Eng Leads]" | ||
|
||
- name: Debug in group | ||
run: echo "${{ github.actor }} is team member ${{ steps.teamAffiliation.outputs.isTeamMember }}" | ||
|
||
- name: Auto contribution labeler | ||
if: ${{ steps.teamAffiliation.outputs.isTeamMember == 'false' }} | ||
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. only run if not part of the team |
||
uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: .github/opened-pr-labeler.yml | ||
configuration-path: .github/opened-pr-contribution-labeler.yml | ||
|
||
- name: Assign Author | ||
uses: technote-space/assign-author@v1 |
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.
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.
Updated file as part of major update of labeler action from 4 > 5