Skip to content

Commit

Permalink
github/actions: Enable /jira-epic slash commands
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ochosi authored and ondrejbudai committed Dec 13, 2024
1 parent 6fdc6d6 commit e90010f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pr_best_practices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit e90010f

Please sign in to comment.