Skip to content

⏰ An action for adding label to a pull request after it being opened or ready for review for more than certain hours.

License

Notifications You must be signed in to change notification settings

kentaro-m/waiting-for-review-labeler

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

About

⏰ An action for adding label to a pull request after it being opened or ready for review for more than certain hours.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •