From 41bce28d5ffaab9cd1a23043e6200a84492292a4 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 12 Jul 2024 10:01:27 +0200 Subject: [PATCH] ci: add workflow to check PR style Signed-off-by: Ettore Di Giacinto --- .github/workflows/prlint.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/prlint.yaml diff --git a/.github/workflows/prlint.yaml b/.github/workflows/prlint.yaml new file mode 100644 index 00000000..471985f6 --- /dev/null +++ b/.github/workflows/prlint.yaml @@ -0,0 +1,28 @@ +name: Check PR style + +on: + pull_request_target: + types: + - opened + - reopened + - edited + - synchronize + +jobs: + title-lint: + runs-on: ubuntu-latest + permissions: + statuses: write + steps: + - uses: aslafy-z/conventional-pr-title-action@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + check-pr-description: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: jadrol/pr-description-checker-action@v1.0.0 + id: description-checker + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + exempt-labels: no qa