Skip to content

add minimum open time action for PRs #1389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/minimum-open-time.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR Policy
on:
pull_request:
workflow_dispatch:
# scheduling only on PRs is not directly supported. See https://github.com/orgs/community/discussions/49960
schedule:
- cron: '0 0 * * *' # once daily

jobs:
require-minimum-open-time:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
name: Require Minimum Open Time
steps:
- uses: actions/checkout@v2
- uses: gregsdennis/minimum-open-time@main
with:
time: 2w # see below for options
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}