Skip to content

Commit 2095bd3

Browse files
authored
Merge pull request #1389 from json-schema-org/gregsdennis/minimum-open-time
add minimum open time action for PRs
2 parents 4089b1e + 2a7bd46 commit 2095bd3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: PR Policy
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
# scheduling only on PRs is not directly supported. See https://github.com/orgs/community/discussions/49960
6+
schedule:
7+
- cron: '0 0 * * *' # once daily
8+
9+
jobs:
10+
require-minimum-open-time:
11+
if: github.event_name == 'pull_request'
12+
runs-on: ubuntu-latest
13+
name: Require Minimum Open Time
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: gregsdennis/minimum-open-time@main
17+
with:
18+
time: 2w # see below for options
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)