Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kentaro-m/waiting-for-review-labeler
:alarm_clock: An action for adding label to a pull request after it being opened or ready for review for more than certain hours.
https://github.com/kentaro-m/waiting-for-review-labeler
actions code-review github-actions review
Last synced: 3 months ago
JSON representation
:alarm_clock: An action for adding label to a pull request after it being opened or ready for review for more than certain hours.
- Host: GitHub
- URL: https://github.com/kentaro-m/waiting-for-review-labeler
- Owner: kentaro-m
- License: mit
- Created: 2022-01-07T16:58:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-16T21:53:56.000Z (about 1 year ago)
- Last Synced: 2024-05-21T11:40:02.361Z (8 months ago)
- Topics: actions, code-review, github-actions, review
- Language: TypeScript
- Homepage:
- Size: 932 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Waiting For Review Labeler
An action for adding label to a pull request after it being opened or ready for review for more than certain hours.
![](./pr-cycle-time.svg)
## :arrow_forward: Usage
### Create workflow
Create the `waiting-for-review-labeler.yml` file in the `.github/workflows` directory.
```yml
name: Waiting For Review Labeleron:
schedule:
# Crontab Every Hour
- cron: '0 * * * *'jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/waiting-for-review-labeler@main
with:
hours-before-add-label: 24
```### Inputs
| Name | Description | Default |
| ---------------------------- | ----------------------------------------------------------------------------------------------------- | -------------------- |
| `repo-token` | Token for the repository. Can be passed in using `{{ secrets.GITHUB_TOKEN }}`. | N/A |
| `hours-before-add-label` | The number of hours to wait to add label to a pull request after it being opened or ready for review. | `24` |
| `label-name` | The name of label to add it to a pull request after it being opened or ready for review. | `waiting for review` |
| `skip-approved-pull-request` | Skip adding label when a pull request review status is approved. | `false` |## :memo: Licence
MIT