Debian Codegraph @

ansible_collections/amazon/aws/.github/workflows/label-new-prs.yaml

raw
1 ---
2 name: label new prs
3 on:
4 pull_request_target:
5 types:
6 - opened
7 - reopened
8 - converted_to_draft
9 - ready_for_review
10
11 jobs:
12 add_label:
13 if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
14 runs-on: ubuntu-latest
15 permissions:
16 pull-requests: write
17 steps:
18 - name: Add 'needs_triage' label if the pr is not a draft
19 uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1
20 if: github.event.pull_request.draft == false
21 with:
22 labels: needs_triage
23
24 - name: Remove 'needs_triage' label if the pr is a draft
25 uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1
26 if: github.event.pull_request.draft == true
27 with:
28 labels: needs_triage