Update Workflows to reflect new Labels (#10026)

This commit is contained in:
Adam Rusted 2023-12-05 12:50:14 +00:00 committed by GitHub
parent 31f63b171d
commit 909e1ca877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 10 deletions

9
.github/labeler.yml vendored
View File

@ -1,6 +1,13 @@
new icon: new icon:
- any: [icons/*.svg] - any: [icons/*.svg]
status: added status: added
icon outdated: update icon/data:
- any: [icons/*.svg] - any: [icons/*.svg]
status: modified status: modified
docs:
- any: ['*.md']
status: modified
meta:
- any: ['.github/*', 'scripts/*', 'tests/*', '*']
- all: ['!*.md', '!icons/*.svg', '!_data/*', '!package.json']
status: modified

View File

@ -54,9 +54,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: priority-1 - id: priority-1
name: Assign `icon outdated` pull requests to "Priority 1" name: Assign `update icon/data` pull requests to "Priority 1"
uses: srggrs/assign-one-project-github-action@1.3.1 uses: srggrs/assign-one-project-github-action@1.3.1
if: contains(steps.get-labels.outputs.labels, 'icon outdated') if: contains(steps.get-labels.outputs.labels, 'update icon/data')
with: with:
project: https://github.com/orgs/simple-icons/projects/2 project: https://github.com/orgs/simple-icons/projects/2
column_name: Priority 1 column_name: Priority 1

View File

@ -10,8 +10,8 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- id: match-title - id: match-java
name: Match title name: Match Java
# if the title contains the word Java (case insensitive) # if the title contains the word Java (case insensitive)
# we make sure that this word is the end of the string or is followed by a space character (ex. we do not want to match javascript) # we make sure that this word is the end of the string or is followed by a space character (ex. we do not want to match javascript)
# we make sure that this word is the beginning of the string or is preceded by a space character (ex. we do not want to match foojava) # we make sure that this word is the beginning of the string or is preceded by a space character (ex. we do not want to match foojava)
@ -33,7 +33,7 @@ jobs:
# - we close the issue # - we close the issue
- name: Close the issue - name: Close the issue
if: | if: |
steps.match-title.outputs.match == 'true' && steps.match-java.outputs.match == 'true' &&
contains(steps.get-labels.outputs.labels, 'new icon') contains(steps.get-labels.outputs.labels, 'new icon')
uses: actions/github-script@v6 uses: actions/github-script@v6
with: with:

View File

@ -10,7 +10,7 @@ jobs:
- uses: wow-actions/potential-duplicates@v1 - uses: wow-actions/potential-duplicates@v1
with: with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
label: potential duplicate label: duplicate
exclude: | exclude: |
adding adding
add add

View File

@ -17,13 +17,14 @@ jobs:
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
labels: | labels: |
assessing
awaiting reply awaiting reply
changes requested
duplicate duplicate
in discussion in discussion
invalid invalid
out of scope out of scope
pending pending
permission required
won't add won't add
remove-closed-pr-labels: remove-closed-pr-labels:
name: Remove closed pull request labels name: Remove closed pull request labels
@ -36,6 +37,7 @@ jobs:
labels: | labels: |
in discussion in discussion
pending pending
assessing
remove-closed-issue-labels: remove-closed-issue-labels:
name: Remove closed issue labels name: Remove closed issue labels
if: github.event.issue.state == 'closed' if: github.event.issue.state == 'closed'
@ -47,5 +49,4 @@ jobs:
labels: | labels: |
in discussion in discussion
pending pending
tracking assessing
help wanted