Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hamuyuuki/merging-hours-restriction
https://github.com/hamuyuuki/merging-hours-restriction
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/hamuyuuki/merging-hours-restriction
- Owner: hamuyuuki
- License: mit
- Created: 2021-02-20T03:35:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-02-24T02:05:16.000Z (over 3 years ago)
- Last Synced: 2024-04-22T13:20:43.522Z (7 months ago)
- Language: TypeScript
- Size: 638 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Merging Hours Restriction
This GitHub Action adds merging hours restriction to the Branch protection rule of the default branch.
# Usage
```yaml
name: Merging Hours Restrictionon:
schedule:
- cron: '0 * * * *'jobs:
merging_hours_restriction:
runs-on: ubuntu-latest
steps:
- uses: hamuyuuki/[email protected]
with:
appId: ${{ secrets.PUSHING_HOURS_RESTRICTION_APP_ID }}
privateKey: ${{ secrets.PUSHING_HOURS_RESTRICTION_PRIVATE_KEY }}
installationId: ${{ secrets.PUSHING_HOURS_RESTRICTION_INSTALLATION_ID }}
startHour: 9
endHour: 18
env:
TZ: Asia/Tokyo
```# Authentication
WIP
## Using a Personal Access Token
WIP
## Using a GitHub Apps
WIP
# Limitation
- Restrict pushes to the default branch from Friday to Sunday.
- Please set `TZ` environment variable if you want to use hours with time zone.