Skip to content

Commit 2a7a31d

Browse files
authored
Merge pull request #1333 from microsoft/user/vjunyli/FixStaleWF
use PAT_TOKEN and add dry-run for testing purpose.
2 parents c74e591 + 9e8335f commit 2a7a31d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/StaleIssues.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Close inactive issues
22
on:
3+
workflow_dispatch:
34
schedule:
45
# Runs every Monday at 06:00 PST (14:00 UTC)
56
- cron: '0 14 * * 1'
@@ -16,5 +17,7 @@ jobs:
1617
stale-issue-label: "stale"
1718
stale-issue-message: "This issue has been inactive for a year. It will be closed in 31 days if no further activity occurs. If you believe this issue is still relevant, please comment to keep it open."
1819
close-issue-message: "Closing due to prolonged inactivity."
20+
remove-stale-when-updated: true
21+
dry-run: true # This prevents any real changes
1922
operations-per-run: 400
20-
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
repo-token: ${{ secrets.PAT_TOKEN }}

0 commit comments

Comments
 (0)