Jira Link Auto Commenter

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 …


This content originally appeared on DEV Community and was authored by Bimochan Shrestha

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 is Thank 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.

Links:

Marketplace
Github Repo


This content originally appeared on DEV Community and was authored by Bimochan Shrestha


Print Share Comment Cite Upload Translate Updates
APA

Bimochan Shrestha | Sciencx (2021-12-25T03:42:28+00:00) Jira Link Auto Commenter. Retrieved from https://www.scien.cx/2021/12/25/jira-link-auto-commenter/

MLA
" » Jira Link Auto Commenter." Bimochan Shrestha | Sciencx - Saturday December 25, 2021, https://www.scien.cx/2021/12/25/jira-link-auto-commenter/
HARVARD
Bimochan Shrestha | Sciencx Saturday December 25, 2021 » Jira Link Auto Commenter., viewed ,<https://www.scien.cx/2021/12/25/jira-link-auto-commenter/>
VANCOUVER
Bimochan Shrestha | Sciencx - » Jira Link Auto Commenter. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/12/25/jira-link-auto-commenter/
CHICAGO
" » Jira Link Auto Commenter." Bimochan Shrestha | Sciencx - Accessed . https://www.scien.cx/2021/12/25/jira-link-auto-commenter/
IEEE
" » Jira Link Auto Commenter." Bimochan Shrestha | Sciencx [Online]. Available: https://www.scien.cx/2021/12/25/jira-link-auto-commenter/. [Accessed: ]
rf:citation
» Jira Link Auto Commenter | Bimochan Shrestha | Sciencx | https://www.scien.cx/2021/12/25/jira-link-auto-commenter/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.