Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
git-branch

GitHub Action

Validate JIRA-ID branch name and consistency across PR title and commits

v1.6.2-rc8 Pre-release

Validate JIRA-ID branch name and consistency across PR title and commits

git-branch

Validate JIRA-ID branch name and consistency across PR title and commits

Validates if the branch name contains JIRA-ID - and PR title and commits have the same one

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Validate JIRA-ID branch name and consistency across PR title and commits

uses: worksome/[email protected]

Learn more about this action in worksome/jira-branch-name-validator-action

Choose a version

JIRA Branch Name Validation Action

A GitHub action for validating if the branch name is contains JIRA id

Inputs

branch-name

Required The name of the branch to validate against.

Example usage

uses: worksome/jira-branch-name-validator-action@main
with:
  branch-name: $BRANCH_NAME

Full example usage

name: Code Analysis

on:
  pull_request

jobs:
  branchName:
    name: Branch Validation
    runs-on: ubuntu-latest
    steps:
      - name: Validate JIRA branch name
        uses: worksome/[email protected]
        with:
          branch-name: ${{ github.event.pull_request.head.ref }}