Linking GitHub pull requests to JIRA tickets can be irritating. PR descriptions often miss references to the right ticket, or contributors forget to include links altogether. This makes it harder for reviewers and project managers to connect code changes to the actual work item.
The JIRA PR Link Action can solve that problem.
🔗 What It Does
This GitHub Action automatically adds a “Link to JIRA ticket” line to your pull request description whenever it finds a valid JIRA key in the PR title.
No more manual setting up Markdown links, as long as you include the ticket in the title, it will be prepended or appended as a link to your PR body.
💡 Use Cases
Consistent Documentation: Every pull request gets a properly formatted JIRA link.
Improved Collaboration: Reviewers and PMs can jump straight from GitHub to the relevant JIRA issue.
Save Time: Contributors don’t need to remember to copy/paste ticket URLs.
CI/CD Ready: Fits neatly into any PR workflow without extra setup.
⚡ How to Use It
Add the action to your workflow:
name: Add JIRA Links
on:
pull_request:
types: [opened, edited, reopened]
permissions:
contents: read
pull-requests: write
jobs:
add-jira-links:
runs-on: ubuntu-latest
steps:
- uses: codenamegrant/jira-pr-link-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
jira-base-url: 'https://yourcompany.atlassian.net'
That’s it. From now on, PRs will automatically include links to their JIRA tickets.
Top comments (0)