Skip to content

ensure the jira ticket is in both the title and the body of a pr

License

Notifications You must be signed in to change notification settings

drmaples/pr-lint-jira

Repository files navigation

pr-lint-jira

Lint PR to ensure a JIRA ticket is found in both the title and the body

Usage

In .github/workflows, create a lint_pr.yml file with the appropriate config options.

If you do not have a JIRA ticket, then add [no-ticket] or whatever is configured in the no_ticket.

Example

name: PR lint

on:
  pull_request:
    types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
  title:
    name: pr-lint-jira
    runs-on: ubuntu-latest
    steps:
      - uses: drmaples/pr-lint-jira@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}

Inputs

see action.yml

About

ensure the jira ticket is in both the title and the body of a pr

Resources

License

Stars

Watchers

Forks

Packages

No packages published