-
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
Changes from all commits
e0ae9c0
801b1dd
21a87a4
5aae6cd
a0f846e
4bbe2dc
759d6a8
c146b33
e7028ff
4acef7d
d84104d
8c9e35b
cd6c4cf
795d062
3373b79
f0f161f
3bbf17b
365b0c5
b35a890
2948c44
a95b220
78a01ee
2e4f446
a857058
f9d8608
8979108
321b087
7c1d3ec
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,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.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -382,7 +382,8 @@ jobs: | |
|
||
storybook_tests: | ||
name: Storybook test runner | ||
runs-on: ubuntu-latest | ||
# Causes playwrite issues in latest versions. Upgrading deps causes violations in the storybook tests. | ||
runs-on: ubuntu-22.04 | ||
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 feel like we should handle the upgrade but right now this version of Ubuntu only applies to this step and has all the packages Playwrite needs. All the others use the latest version |
||
timeout-minutes: 20 | ||
needs: chromatic | ||
strategy: | ||
|
@@ -450,7 +451,7 @@ jobs: | |
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/labeler@v4 | ||
- uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
sync-labels: true | ||
|
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 |
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