mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-05-03 17:43:09 +03:00
Fix project auto-assignment closing not merged PRs (#7128)
* Fix project assignment on closed PRs not merged * Minor change * Don't execute labeler on closed PRs * Fix column name
This commit is contained in:
parent
a89f126550
commit
6eee268a48
20
.github/workflows/add-labels-priority.yml
vendored
20
.github/workflows/add-labels-priority.yml
vendored
@ -1,11 +1,12 @@
|
|||||||
name: Add Pull Request Labels and Assign to Project
|
name: Add Pull Request Labels and Assign to Project
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [opened]
|
types: [opened, closed]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
triage:
|
triage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.action == 'opened'
|
||||||
steps:
|
steps:
|
||||||
- uses: ericcornelissen/labeler@label-based-on-status
|
- uses: ericcornelissen/labeler@label-based-on-status
|
||||||
with:
|
with:
|
||||||
@ -14,6 +15,7 @@ jobs:
|
|||||||
assign-to-project:
|
assign-to-project:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Assign to Project
|
name: Assign to Project
|
||||||
|
if: github.event.action == 'opened'
|
||||||
needs: triage
|
needs: triage
|
||||||
env:
|
env:
|
||||||
MY_GITHUB_TOKEN: ${{ secrets.AUTO_ASSIGN_WORKFLOW_TOKEN }}
|
MY_GITHUB_TOKEN: ${{ secrets.AUTO_ASSIGN_WORKFLOW_TOKEN }}
|
||||||
@ -76,3 +78,19 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
project: https://github.com/orgs/simple-icons/projects/2
|
project: https://github.com/orgs/simple-icons/projects/2
|
||||||
column_name: Unprioritised
|
column_name: Unprioritised
|
||||||
|
|
||||||
|
unassign-from-project:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Unassign from Project
|
||||||
|
if: |
|
||||||
|
github.event.action != 'opened' &&
|
||||||
|
github.event.pull_request.merged == false
|
||||||
|
needs: triage
|
||||||
|
env:
|
||||||
|
MY_GITHUB_TOKEN: ${{ secrets.AUTO_ASSIGN_WORKFLOW_TOKEN }}
|
||||||
|
steps:
|
||||||
|
- name: Assign closed pull requests to "Completed or Abandoned"
|
||||||
|
uses: srggrs/assign-one-project-github-action@1.3.1
|
||||||
|
with:
|
||||||
|
project: https://github.com/orgs/simple-icons/projects/2
|
||||||
|
column_name: Completed or Abandoned
|
||||||
|
Loading…
Reference in New Issue
Block a user