From 51e4171caf17b198add3b6d053a37680cde5d598 Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Fri, 20 Dec 2024 14:04:12 +0100 Subject: [PATCH] actions: Add pr-best-practices workflow This commit adds the pr-best-practices check, which prevents pull requests without descriptions being merged and which allows developers to quickly create Jira Tasks based on the /jira-epic command in pull request descriptions or comments. --- .github/workflows/pr_best_practices.yml | 18 ++++++++++++++++++ 1 file changed, 18 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 0000000..d7a1b0c --- /dev/null +++ b/.github/workflows/pr_best_practices.yml @@ -0,0 +1,18 @@ +name: "Verify PR best practices" + +on: + pull_request_target: + branches: [main] + types: [opened, synchronize, reopened, edited] + issue_comment: + types: [created] + +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 }} + jira_token: ${{ secrets.IMAGEBUILDER_BOT_JIRA_TOKEN }}