From b8e025349355b8ce5b853dbafad64ed87a664743 Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Mon, 4 Mar 2024 14:57:20 +0100 Subject: [PATCH] actions: Add a PR best practices check This pipeline tests: 1. If the PR description is not empty (blocking) 2. If the PR title follows our format (non-blocking) `component: This is the change (JIRA-001)` 3. If 1. and 2. are True, it adds a 'best practice' label to the PR --- .github/workflows/pr_best_practices.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/pr_best_practices.yml diff --git a/.github/workflows/pr_best_practices.yml b/.github/workflows/pr_best_practices.yml new file mode 100644 index 00000000..0aa528f5 --- /dev/null +++ b/.github/workflows/pr_best_practices.yml @@ -0,0 +1,14 @@ +name: "Verify PR best practices" + +on: + pull_request_target: + branches: [ main ] + +jobs: + pr-best-practices: + runs-on: ubuntu-latest + steps: + - name: PR best practice check + uses: osbuild/pr-best-practices@main + with: + token: ${{ secrets.SCHUTZBOT_GITHUB_ACCESS_TOKEN }}