simple-icons/.github/workflows/add-labels-priority.yml
2021-09-27 18:13:35 +02:00

34 lines
1.0 KiB
YAML

name: Add Pull Request Labels and Assign to Project
on:
pull_request_target:
types: [opened]
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: ericcornelissen/labeler@label-based-on-status
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
assign-to-project:
runs-on: ubuntu-latest
name: Assign to Project
needs: triage
env:
MY_GITHUB_TOKEN: ${{ secrets.AUTO_ASSIGN_WORKFLOW_TOKEN }}
steps:
- name: Assign pull requests to "Unprioritised"
uses: srggrs/assign-one-project-github-action@1.2.1
if: ! contains(github.event.pull_request.labels.*.name, 'icon outdated')
with:
project: https://github.com/orgs/simple-icons/projects/2
column_name: Unprioritised
- name: Assign `icon outdated` pull requests to "Priority 1"
uses: srggrs/assign-one-project-github-action@1.2.1
if: contains(github.event.pull_request.labels.*.name, 'icon outdated')
with:
project: https://github.com/orgs/simple-icons/projects/2
column_name: Priority 1