From 8cda92b40584e7790bc2b6c15fbc08c8e20a3724 Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Wed, 11 Dec 2024 23:12:51 +0100 Subject: [PATCH] github/actions: Add pr best practices check This change allows for using the command to create Jira Tasks under a given Epic both in a pull request comment or in the pull request description. --- .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 000000000..d7a1b0c49 --- /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 }}