DEV Community

Dragoș Străinu
Dragoș Străinu

Posted on

Issue Branch action

My Workflow

Github action that comments on an issue when a related branch is created.

Alt Text

Submission Category:

Maintainer Must-Haves

Yaml File or Link to Code

GitHub logo strdr4605 / issue-branch-action

Github action that comment on an issue when a related branch is created

Issue Branch action

Github action that comment on an issue when a related branch is created

The action check for branch name pattern /(\d+)-/.

`feat/1-issue` // 1
`4605-some-branch-name` // 4605
Enter fullscreen mode Exit fullscreen mode

Example usage

on:
  create
jobs:
  issue-branch:
    name: 'Issue Branch'
    runs-on: ubuntu-latest
    steps:
      - name: 'Issue Branch check'
        uses: strdr4605/issue-branch-action@v1.1
        env:
            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Enter fullscreen mode Exit fullscreen mode



Top comments (0)