vincentkoc/No Out of Hours Merge
Block PR merges outside business hours, holidays and other specific time windows.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| GITHUB_TOKEN | GitHub token | yes | — |
| PR_TITLE | Title of the pull request (if you want check for hotfix) | yes | — |
| TIMEZONE | Timezone to use for checking the current time | no | Europe/London |
| RESTRICTED_TIMES | A JSON object containing restricted times based on weekdays, or specific dates or holidays | no | { "weekly": [ { "days": ["mon", "tue", "wed", "thu", "fri"], "intervals": [[0, 7], [16.5, 24]] } ], "dates": [ { "date": "2023-12-25", "intervals": [[0, 24]] } ], "holidays": { "country": "GB", "state": "UK", "intervals": [[0, 24]] } } |
| CUSTOM_MESSAGE | Custom message to be posted as a comment on the PR if merging is not allowed | no | — |
| CHECK_EXISTING_COMMENT | Boolean flag to enable/disable checking for existing comment with the same message | no | true |
Outputs
no outputs