Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use stale action to auto-close stale PRs after a day
Browse files Browse the repository at this point in the history
This is not as fine-grained as the mergify query but good enough
DanielMSchmidt committed Dec 6, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 36b0c37 commit 9013a34
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -250,13 +250,10 @@ export class CdktfProviderProject extends cdk.JsiiProject {
},
pullRequest: {
staleLabel: "stale",
daysBeforeStale: 14,
staleMessage:
"14 days have passed since this PR was opened, and I assume other builds have succeeded in the meantime. " +
"If no one removes the `stale` label or comments, I'm going to auto-close this PR in 7 days.",
daysBeforeClose: 7,
closeMessage:
"I'm closing this PR automatically with the assumption that other builds have succeeded in the meantime.",
daysBeforeStale: 1,
staleMessage: `Closing this PR, if it has not merged there is most likely a CI or CDKTF issue preventing it from merging. If this has been a manual PR, please reopen it and add the \`no-auto-close\` label to prevent this from happening again.`,
daysBeforeClose: 0,
exemptLabels: ["no-auto-close"],
},
},
docgen: false,

0 comments on commit 9013a34

Please sign in to comment.