Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
alert-circle

GitHub Action

Issue Auto Labeling and Assigning

v1.0.0

Issue Auto Labeling and Assigning

alert-circle

Issue Auto Labeling and Assigning

trigger an action based on issue content

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Issue Auto Labeling and Assigning

uses: Naturalclar/[email protected]

Learn more about this action in Naturalclar/issue-action

Choose a version

TestBuild Assign Label

Issue Action

Github action for automatically adding label or setting assignee when a new Issue is opened.

Usage

Assignee

Automatically assign @username when Issue title or body contains "test"

name: "Set Assignee"
on:
  issues:
    types: [opened]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: Naturalclar/[email protected]
        with:
          keywords: '["test"]'
          action: '["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:
    types: [opened]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: Naturalclar/[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