Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Naturalclar/issue-action
github action for github issue
https://github.com/Naturalclar/issue-action
actions assign github github-actions issue-tracker
Last synced: 6 days ago
JSON representation
github action for github issue
- Host: GitHub
- URL: https://github.com/Naturalclar/issue-action
- Owner: Naturalclar
- License: mit
- Created: 2019-10-12T14:29:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-14T20:44:28.000Z (about 1 year ago)
- Last Synced: 2024-07-18T16:23:11.201Z (4 months ago)
- Topics: actions, assign, github, github-actions, issue-tracker
- Language: TypeScript
- Size: 17 MB
- Stars: 60
- Watchers: 4
- Forks: 20
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-actions - Automatically add Label or Assignee to an Issue
- fucking-awesome-actions - Automatically add Label or Assignee to an Issue
- awesome-workflows - Automatically add Label or Assignee to an Issue
README
[![TestBuild][generaltest]](https://github.com/Naturalclar/issue-action) [![Assign][assigntest]](https://github.com/Naturalclar/issue-action) [![Label][labeltest]](https://github.com/Naturalclar/issue-action)
# Issue Action
Github action for automatically adding label or setting assignee when a new Issue or PR is opened.
## Usage
#### Title or Body
Choose whether you want to check for a keyword match in the issue `title`, the issue `body`, or `both`.
#### Parameters
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`.### Example
```yaml
name: "Set Issue Label and Assignee"
on:
issues:
types: [opened]
pull_request:
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 }}"
```# Upgrading this package
Follow the steps below:
```sh
# create a new release branch
$ git checkout -b release/vX.X.X
``````
$ yarn build
$ git commit -a -m "release"
$ git push origin release/vX.X.X
```[generaltest]: https://github.com/Naturalclar/issue-action/workflows/General%20Test/badge.svg
[assigntest]: https://github.com/Naturalclar/issue-action/workflows/Test%20Issue%20Assign/badge.svg
[labeltest]: https://github.com/Naturalclar/issue-action/workflows/Test%20Issue%20Label/badge.svg