mirror of
https://github.com/Mibew/simple-icons.git
synced 2024-11-15 18:04:12 +03:00
Properly prioritize Maintainer-contributed icons (#9405)
This commit is contained in:
parent
7dc2f2c699
commit
0a02dfeb16
30
.github/workflows/add-labels-priority.yml
vendored
30
.github/workflows/add-labels-priority.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user