Skip to content

Issue Comment Labeler

Actions
trigger an action based on issue comment
v1.5.0
Latest
Star (1)

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:
  issue_comment:
    types: [created]]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: Amwam/issue-comment-action@v1.5.0
        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:
  issue_comment:
    types: [created]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: Amwam/issue-comment-action@v1.5.0
        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

Issue Comment Labeler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

trigger an action based on issue comment
v1.5.0
Latest

Issue Comment Labeler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.