File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
44const 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 ) ;
66const requireAuthorAssigned = ( process . env . REQUIRE_AUTHOR_ASSIGNED || 'true' ) . toLowerCase ( ) === 'true' ;
77
88const getHoursOpen = ( pr ) =>
Original file line number Diff line number Diff line change 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
33name : Linked Issue Enforcer
44
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 :
You can’t perform that action at this time.
0 commit comments