Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.55 KB

README.md

File metadata and controls

67 lines (43 loc) · 1.55 KB

Ticket Link Appender

This action automatically updates your pull request by heuristically searching ticket link from your Jira or other project tracking software and appends on your pull request.

This tool can be used with other project tracking tools like ClickUp as well. Let's explore together!

Settings

jira-project-url

Required Add your jira link in ticket link format. E.g: https://jira.atlassian.net/browse

ticket-regex-title

Optional You can add custom regex if your PR description seems to be different but I encourage to have same standard world wide.

PR summary example:

XYZ-1234: This is an amazing feature

Outputs

Appends ticket link in your PR description:

Jira Link: https://jira.atlassian.net/browse/JPT-1571

Example usage

GITHUB_TOKEN will automatically be there.

uses: sbimochan/[email protected]
  with:
    jira-project-url: https://jira.atlassian.net/browse
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Full example

on: pull_request

jobs:
  example_pr_link:
    runs-on: ubuntu-latest
    name: Auto ticket link appender
    steps:
      - name: Checkout
        uses: actions/checkout@v1

      - name: Append ticket link
        uses: sbimochan/[email protected]

        with:
          jira-project-url: https://jira.atlassian.net/browse
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Recommendations:

Smart Commit

This makes your commits and PR summary consistent.

Check repo.