From 2e1d94aa4826d68731c6914d9a8ea972e3ca18ac Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Tue, 17 Dec 2024 14:54:45 +0100 Subject: [PATCH] github/actions: Enable /jira-epic slash commands 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. By default, this action uses the HMS project to create the Task in. Also, the Epic referred to needs to be in a project that is accessible to the imagebuilder-bot account (currently: COMPOSER, HMS). --- .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 }}