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.
This commit is contained in:
parent
6fdc6d6a55
commit
e90010f153
1 changed files with 5 additions and 1 deletions
6
.github/workflows/pr_best_practices.yml
vendored
6
.github/workflows/pr_best_practices.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue