Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hamuyuuki/merging-hours-restriction


https://github.com/hamuyuuki/merging-hours-restriction

Last synced: about 4 hours ago
JSON representation

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 Restriction

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