|
| 1 | +name: Results Team Project Management |
| 2 | + |
| 3 | +on: |
| 4 | + issues: |
| 5 | + types: [closed, labeled] |
| 6 | + |
| 7 | +concurrency: |
| 8 | + # Cancel in-progress runs only for the exact same event on the same issue/PR. |
| 9 | + # e.g. two 'labeled' events with the same label on the same issue will cancel the previous, |
| 10 | + # but 'closed' and 'labeled' or two different labels will run in parallel. |
| 11 | + group: "${{ github.workflow }}-${{ github.event.action }}-${{ github.event.label.name || '' }}-${{ github.event.issue.number }}" |
| 12 | + cancel-in-progress: true |
| 13 | + |
| 14 | +jobs: |
| 15 | + add-docs-labels: |
| 16 | + if: github.event_name == 'issues' && github.event.action == 'closed' && github.event.issue.state_reason == 'completed' |
| 17 | + uses: dequelabs/results-team/.github/workflows/add-docs-labels-on-close.yml@main |
| 18 | + with: |
| 19 | + issue-number: ${{ github.event.issue.number }} |
| 20 | + secrets: |
| 21 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 22 | + |
| 23 | + check-issue-closed-or-labeled: |
| 24 | + if: github.event_name == 'issues' |
| 25 | + uses: dequelabs/results-team/.github/workflows/check-issue-is-closed-or-labeled.yml@main |
| 26 | + with: |
| 27 | + action: ${{ github.event.action }} |
| 28 | + issue-state-reason: ${{ github.event.issue.state_reason || '' }} |
| 29 | + issue-label-name: ${{ github.event.label.name || '' }} |
| 30 | + issue-number: ${{ github.event.issue.number }} |
| 31 | + repo-name: ${{ github.event.repository.name }} |
| 32 | + repo-owner: ${{ github.repository_owner }} |
| 33 | + issue-url: ${{ github.event.issue.html_url }} |
| 34 | + secrets: |
| 35 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 36 | + |
| 37 | + set-date-closed: |
| 38 | + if: github.event_name == 'issues' && github.event.action == 'closed' |
| 39 | + uses: dequelabs/results-team/.github/workflows/set-date-closed-on-issue-close.yml@main |
| 40 | + with: |
| 41 | + issue-number: ${{ github.event.issue.number }} |
| 42 | + repo-name: ${{ github.event.repository.name }} |
| 43 | + repo-owner: ${{ github.repository_owner }} |
| 44 | + secrets: |
| 45 | + token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments