Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PR template and autolink to JIRA task action #60

Merged
merged 5 commits into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Author advertizement!

>[!CAUTION]
Don't forget to check that the base branch for the PR is '''develop''' and not the default '''main''' branch!

## 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...

...
23 changes: 23 additions & 0 deletions .github/workflows/jira_link_to_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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)$'
jira-project-key: 'HCK'
use: 'both'
fail-when-jira-issue-not-found: false