From e90010f153399e3452884f6ed8da2fcd68d1ffa0 Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Fri, 13 Dec 2024 09:21:20 +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. To trigger the action, you can simply add a comment to a given pull request with the following content: /jira-epic ISSUE-1234 This will trigger the action and a bot will create a Jira Task under the Epic ISSUE-1234. Once this is successful, it will update the pull request title and description to contain a link to the newly created Jira ticket, which also means that the two will be linked. Alternatively, you can also add the command to the pull request description (if you e.g. want to create the Task at PR creation time). Note: This is currently only enabled for the HMS project. --- .github/workflows/pr_best_practices.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_best_practices.yml b/.github/workflows/pr_best_practices.yml index 0aa528f51..d7a1b0c49 100644 --- a/.github/workflows/pr_best_practices.yml +++ b/.github/workflows/pr_best_practices.yml @@ -2,7 +2,10 @@ name: "Verify PR best practices" on: pull_request_target: - branches: [ main ] + branches: [main] + types: [opened, synchronize, reopened, edited] + issue_comment: + types: [created] jobs: pr-best-practices: @@ -12,3 +15,4 @@ jobs: uses: osbuild/pr-best-practices@main with: token: ${{ secrets.SCHUTZBOT_GITHUB_ACCESS_TOKEN }} + jira_token: ${{ secrets.IMAGEBUILDER_BOT_JIRA_TOKEN }}