yykamei/Block Merge Based on Time

You can prevent your members from merging pull requests during the specified time.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
afterThe time to start blocking merge. You can set exception time for specific days. For example, the value could be "17:30, 16:30 on Monday"no00:00
beforeThe time to stop blocking merge. You can set exception time for specific days. For example, the value could be "09:00, 08:00 on Monday"no00:00
timezoneTime zone to useyes
base-branchesThe comma-separated base branches of pull requests. This tool will block only pull requests the base branches of which are listed in this parameter. You can set regular expressions surrounding with `/` like `/staging\/.*/` and just set string literals like `develop`. Also, the value `(default)` is acceptable, which means pull requests that will be merged into the default branch will be blocked. The default value is `/^.*$/` for backward compatibility.no/^.*$/
prohibited-days-datesThe comma-separated days or dates to stop blocking merge for all day. You can also specify regional holidays with special syntax, such as "H:St. Barthélemy" and "BH:St. Barthélemy", which stand for "holidays of St. Barthélemy" and "before holidays of St. Barthélemy." The word after "H:" or "BH:" is a region name that is listed in `src/holidays.json` as a JSON key. For example, the value could be "Sunday, 2021-08-01, 2021-08-06/2021-08-10, H:Côte d’Ivoire"no""
no-block-labelThe label to indicate the pull request should not be blockednono-block
commit-status-contextThe commit status contextnoblock-merge-based-on-time
commit-status-description-with-successThe commit status description shown with successnoThe PR could be merged
commit-status-description-while-blockingThe commit status description shown while blockingnoThe PR can't be merged based on time, which is due to your organization's policy
commit-status-urlThe commit status URL to describe why this action is conductedno""
custom-holidays-pathPath to a custom holidays JSON file. The JSON format should be {"key": [{"date": "YYYY-MM-DD"}]}. When specified, this will be used instead of the built-in holidays for H: and BH: prefixes in prohibited-days-dates. no""
tokenThe GitHub token used to create an authenticated clientno${{ github.token }}
namedescription
pr-blockedA boolean value to indicate the pull request is blocked. This is set only when the `pull_request` event occurs. Draft pull requests are always skipped and this value is set to "false".