Skip to content
bookmark

GitHub Action

Waiting For Review Labeler

v0.1.0 Pre-release

Waiting For Review Labeler

bookmark

Waiting For Review Labeler

Add label to a pull request after it being opened or ready for review for more than certain hours

Installation

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

              

- name: Waiting For Review Labeler

uses: kentaro-m/waiting-for-review-labeler@v0.1.0

Learn more about this action in kentaro-m/waiting-for-review-labeler

Choose a version

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.

▶️ Usage

Create workflow

Create the waiting-for-review-labeler.yml file in the .github/workflows directory.

name: Waiting For Review Labeler

on:
  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

📝 Licence

MIT