Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/scripts/cron-enforcer-pr-linked-issue.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// A script to closes pull requests without a linked issue after 12 hours automatically.
// A script to closes pull requests without a linked issue after 24 hours automatically.
Comment thread
manishdait marked this conversation as resolved.

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

const getHoursOpen = (pr) =>
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cron-enforcer-pr-linked-issue.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This workflow automatically closes pull requests without a linked issue after 3 days.
# This workflow automatically closes pull requests without a linked issue after 1 day.
Comment thread
manishdait marked this conversation as resolved.

name: Linked Issue Enforcer

Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRY_RUN: ${{ env.DRY_RUN }}
HOURS_BEFORE_CLOSE: "12"
HOURS_BEFORE_CLOSE: "24"
REQUIRE_AUTHOR_ASSIGNED: "true"
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 #v9.0.0
with:
Expand Down
Loading