Properly prioritize Maintainer-contributed icons (#9405)

This commit is contained in:
Adam Rusted 2023-08-30 13:41:32 +01:00 committed by GitHub
parent 7dc2f2c699
commit 0a02dfeb16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,11 +70,39 @@ jobs:
project: https://github.com/orgs/simple-icons/projects/2
column_name: Priority 2
- id: priority-3
name: Assign `new icon` pull requests by maintainers to "Priority 3"
uses: srggrs/assign-one-project-github-action@1.3.1
# the PR has the `new icon` label along with a linked issue and
# the opener is a member of the simple-icons organisation
if: |
contains(steps.get-labels.outputs.labels, 'new icon') &&
join(steps.get-linked-issues.outputs.issues) != '' &&
contains(steps.get-si-members.outputs.members, github.event.pull_request.user.login) == true
with:
project: https://github.com/orgs/simple-icons/projects/2
column_name: Priority 3
- id: priority-4
name: Assign `new icon` pull requests by maintainers without an issue to "Priority 4"
uses: srggrs/assign-one-projtect-github-action@1.3.1
# the PR has the `new icon` label but with no linked issue and
# the opener is a member of the simple-icons organisation
if: |
contains(steps.get-labels.outputs.labels, 'new icon') &&
join(steps.get-linked-issues.outputs.issues) == '' &&
contains(steps.get-si-members.outputs.members, github.event.pull_request.user.login) == true
with:
project: https://github.com/orgs/simple-icons/projects/2
column_name: Priority 4
- name: Assign pull requests to "Unprioritised"
uses: srggrs/assign-one-project-github-action@1.3.1
if: |
steps.priority-1.conclusion == 'skipped' &&
steps.priority-2.conclusion == 'skipped'
steps.priority-2.conclusion == 'skipped' &&
steps.priority-3.conclusion == 'skipped' &&
steps.priority-4.conclusion == 'skipped'
with:
project: https://github.com/orgs/simple-icons/projects/2
column_name: Unprioritised