Github action for automatically adding label or setting assignee when a new comment is added to an Issue or Pull Request.
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/[email protected]
with:
keywords: '["test"]'
assignees: '["username"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"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/[email protected]
with:
keywords: '["help", "wanted"]'
labels: '["help wanted"]'
github-token: "${{ secrets.GITHUB_TOKEN }}"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.XCommentout 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