Migrating from bitbucket to Github made me lack only one feature. The link that navigates to its related Jira ticket from pull request.
This is why I created this tool for my project.
This Github action auto comments in pull request with Jira link to it. This tool is helpful for devs who use consistent PR summary like Ticket-1234: This is PR summary
.
It grabs the ticket number using regex and comments on the PR by making a JIRA link. If it can't find the ticket number, it will fail silently and won't fail the whole workflow.
How to use:
Create a workflow file in root of your project.
.github/workflows/main.yml
Input:
-
custom-comment
(optional): If you want to add your own comments before Jira link. Default isThank you for your contributions. Jira link:
-
jira-project-url
: you can figure our this URL by going to any of your JIRA ticket in new tab and checking the URI box. -
GITHUB_TOKEN
: is auto generated
on: pull_request
jobs:
example_comment_pr:
runs-on: ubuntu-latest
name: Auto jira link commenter
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Comment PR
uses: sbimochan/jira-link-commenter@v2.4
with:
jira-project-url: https://jira.atlassian.net/browse
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
custom-comment: 'Thank you for your contribution!!! :confetti_ball:'
Hope you will find it useful for your project.
Top comments (1)
Great post on the Jira Link Auto Commenter! It's fascinating how automation can streamline our workflows and enhance collaboration within teams. The ability to automatically comment with relevant Jira links not only saves time but also keeps everyone aligned on project updates.
From my experience, integrating such automation tools can significantly reduce the friction in communication, especially in larger teams where information can easily get lost. For instance, I’ve implemented a similar automation that notifies team members when new files are uploaded to our shared drive, linking directly to the relevant Jira issues. This has helped us maintain context without having to switch between platforms constantly.
If anyone is looking for a comprehensive solution to manage team collaboration and project tracking, I recently came across a resource that might be helpful: Teamcamp. It offers features that complement Jira's capabilities, making it easier to keep everything organized.
What are some other automation tools or practices you've found effective in enhancing your Jira experience? I'd love to hear your thoughts!