Skip to content

test: #184

test: #184 #5

Workflow file for this run

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 }}