Github action for automatically adding label or setting assignee when a new Issue or PR is opened.
Choose whether you want to check for a keyword match in the issue title
, the issue body
, or both
.
Automatically set BUG
label and assign @username
when Issue contains bug
or error
.
Automatically set help-wanted
label and assign @username
when Issue contains help
or guidance
.
name: "Set Issue Label and Assignee"
on:
issues:
types: [opened]
pull_requests:
typed: [opened]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: Naturalclar/[email protected]
with:
title-or-body: "both"
parameters: '[ {"keywords": ["bug", "error"], "labels": ["BUG"], "assignees": ["username"]}, {"keywords": ["help", "guidance"], "labels": ["help-wanted"], "assignees": ["username"]}]'
github-token: "${{ secrets.GITHUB_TOKEN }}"
Follow the steps below:
# create a new release branch
$ git checkout -b release/vX.X.X
$ yarn package
$ git add node_modules lib
$ git commit -a -m "release"
$ git push origin release/vX.X.X