Skip to content

Commit

Permalink
add PR template and auto link to JIRA tasks action
Browse files Browse the repository at this point in the history
  • Loading branch information
bigorn0 committed Jun 21, 2024
1 parent 8a50c67 commit 00e8458
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Content

You have no Jira task for this PR? Describe your changes here...

...

## Technical details

You feel the need to provide technical explanations? You can do it here...

...
22 changes: 22 additions & 0 deletions .github/workflows/jira_link_to_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# https://github.com/marketplace/actions/jira-description
# Requires a JIRA REST api token: https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/
# https://id.atlassian.com/manage-profile/security/api-tokens to generate one with you username
# Configure the JIRA_TOKEN secret as a repository action secret as described below:
# follow the pattern: <username>:<api token from jira>
name: jira-description-action
on:
pull_request:
types: [opened, reopened]
jobs:
add-jira-description:
runs-on: ubuntu-latest
steps:
- uses: cakeinpanic/jira-description-action@v0.4.0
name: jira-description-action
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
jira-token: ${{ secrets.JIRA_TOKEN }}
jira-base-url: https://hackolade.atlassian.net
skip-branches: '^(develop|main|master)$' #optional
jira-project-key: 'HCK' #optional
use: 'both'

0 comments on commit 00e8458

Please sign in to comment.