Skip to content

A GitHub action to comment JIRA issue number when a PR is opened

License

Notifications You must be signed in to change notification settings

momentumdash/comment-on-pr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Issue Number Commenter on PR via GitHub Action

A GitHub action to comment issue number when a PR is opened. issue number can be found from PR title or Branch name. Will check if issue number has been commented before and will not comment again if so.

Finds PRO-* Issues

Usage

  • Requires the GITHUB_TOKEN secret.
  • Supports pull_request event types.

Create the following file in the root directory of your project .github/workflows/issue-comment-on-pr.yml

issue-comment-on-pr.yml

name: comment issue number on PR

on: 
  pull_request:
    types: [opened]

jobs:
  comment:
    runs-on: ubuntu-latest

    steps:
      - name: comment issue number on PR
        uses: momentumdash/comment-on-pr@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

About

A GitHub action to comment JIRA issue number when a PR is opened

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 74.3%
  • Dockerfile 25.7%