You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Free Weekend
v1.0
Good Weekend is a simple GitHub Action that automatically rejects any pull requests submitted on weekends. Enjoy your hassle-free weekends!
Simply add this actions to your GitHub Workflows job, for example:
on:
pull_request:
types: [opened] # DO NOT add other triggers!
jobs:
pr-check:
runs-on: ubuntu-latest
steps:
- name: good-weekend
uses: Namchee/good-weekend@v{version}
with:
access_token: <YOUR_GITHUB_ACCESS_TOKEN_HERE>
Note: DO NOT add other triggers other than
pull_request.opened
!
Please refer to GitHub Workflows Syntax for more advanced usage.
This action is customizable with these following inputs (fill it in with
section in the job steps)
Name | Required? | Default | Description |
---|---|---|---|
access_token |
true |
GitHub's access token which is used to interact with GitHub's API. It is recommended to store this with GitHub secrets | |
timezone |
false |
UTC |
Timezone location on tz database. Cheatsheet |
message |
false |
See here | Message to be shown on weekend pull request |
For more information, please refer to the action metadata
This project is licensed under the MIT license