Skip to content

Commit 7e5588f

Browse files
ZainabTravadiNssGourav
authored andcommitted
fix(ci): align linked issue grace period with documented policy (hiero-ledger#2244)
Signed-off-by: Zainab Travadi <zainabtravadi421@gmail.com>
1 parent 3f082f4 commit 7e5588f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/scripts/cron-enforcer-pr-linked-issue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// A script to closes pull requests without a linked issue after 12 hours automatically.
1+
// A script to closes pull requests without a linked issue after 24 hours automatically.
22

33
// dryRun env var: any case-insensitive 'true' value will enable dry-run
44
const dryRun = (process.env.DRY_RUN || 'false').toString().toLowerCase() === 'true';
5-
const hoursBeforeClose = parseInt(process.env.HOURS_BEFORE_CLOSE || '12', 10);
5+
const hoursBeforeClose = parseInt(process.env.HOURS_BEFORE_CLOSE || '24', 10);
66
const requireAuthorAssigned = (process.env.REQUIRE_AUTHOR_ASSIGNED || 'true').toLowerCase() === 'true';
77

88
const getHoursOpen = (pr) =>

.github/workflows/cron-enforcer-pr-linked-issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow automatically closes pull requests without a linked issue after 3 days.
1+
# This workflow automatically closes pull requests without a linked issue after 1 day.
22

33
name: Linked Issue Enforcer
44

@@ -33,7 +33,7 @@ jobs:
3333
env:
3434
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535
DRY_RUN: ${{ env.DRY_RUN }}
36-
HOURS_BEFORE_CLOSE: "12"
36+
HOURS_BEFORE_CLOSE: "24"
3737
REQUIRE_AUTHOR_ASSIGNED: "true"
3838
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 #v9.0.0
3939
with:

0 commit comments

Comments
 (0)