Skip to content

sortlist/issue-comment-action

 
 

Repository files navigation

Issue Comment Action

Github action for automatically adding label or setting assignee when a new comment is added to an Issue or Pull Request.

Usage

Assignee

Automatically assign @username when Issue title or body contains test

name: "Set Assignee"
on:
  issues_comment:
    types: [created]]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: Amwam/[email protected]
        with:
          keywords: '["test"]'
          assignees: '["username"]'
          github-token: "${{ secrets.GITHUB_TOKEN }}"

Label

Automatically set help wanted label when Issue title or body contains help or wanted

name: "Set Issue Label"
on:
  issues_comment:
    types: [created]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: Amwam/[email protected]
        with:
          keywords: '["help", "wanted"]'
          labels: '["help wanted"]'
          github-token: "${{ secrets.GITHUB_TOKEN }}"

Upgrading this package

When uploading github actions, node_modules and lib directories need to be commited.

Follow the steps below:

# create a new release branch
$ git checkout -b release/vX.X.X

Commentout the following lines in .gitignore

# comment this out distribution branches
node_modules/
lib
$ git add node_modules lib
$ git commit -a -m "release"
$ git push origin release/vX.X.X

About

github action for github issue

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.1%
  • JavaScript 3.9%