test: #184 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Triage PRs | |
on: | |
pull_request: | |
types: [ labeled ] | |
jobs: | |
triage: | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-latest | |
name: Faire le triage | |
strategy: | |
matrix: | |
consultation: | |
- { file: ".github/workflows/comments/pr-duplicate.md", label: "PR duplicate" } | |
- { file: ".github/workflows/comments/need-improvement.md", label: "need improvement" } | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Salle de consultation en ${{ matrix.consultation.label }} | |
if: ${{ github.event.label.name == matrix.consultation.label }} | |
run: gh comment ${{ github.event.pull_request.number }} -F ${{ matrix.consultation.file }} | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
close-pr: | |
permissions: | |
pull-requests: write | |
needs: triage | |
runs-on: ubuntu-latest | |
name: Close PR | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Close PR if PR duplicate | |
if: ${{ github.event.label.name == 'PR duplicate' }} | |
run: gh pr close ${{ github.event.pull_request.number }} | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |