auto ask for feedback on "Alternative Exists"

c22ad7c2e802b11280b2e63d9e6f341032e1e80e

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +41 -7Ignore whitespace
.github/workflows/job-close-stale.yml+41 -7
@@ -1,17 +1,18 @@
11name: 🎯 Close Stale Issues/PRs JobWorkflow
22
33on:
44 workflow_dispatch:
55 schedule:
66 - cron: '0 0 * * *' # Runs every day at midnight UTC
7+ issues:
8+ types: [labeled, unlabeled, edited]
79
810jobs:
911 closemark-staleinactivity:
1012 name: Close StaleMark Issues/PRs Jobwithout Activity
1113 runs-on: ubuntu-latest
1214
1315 steps:
14- # Comment on, then close issues that haven't been updated for ages
1516 - name: Mark Issues/PRs without Activity
1617 # Close Stale Issues and PRs
1718 # https://github.com/marketplace/actions/close-stale-issues
@@ -41,8 +42,13 @@ jobs:
4142 exempt-pr-labels: 'πŸ“Œ Keep Open'
4243 labels-to-add-when-unstale: 'πŸ“Œ Keep Open'
4344
44- # Comment on, then close issues that required a response from the user, but didn't get one
45+ await-user-response:
4546 - name: Mark Issues/PRs withAwaiting RequestedUser Response
47+ runs-on: ubuntu-latest
48+ needs: mark-inactivity
49+
50+ steps:
51+ - name: Mark Issues/PRs Awaiting User Response
4652 # Close Stale Issues and PRs
4753 # https://github.com/marketplace/actions/close-stale-issues
4854 uses: actions/stale@v9
@@ -55,9 +61,37 @@ jobs:
5561 stale-issue-message: >
5662 Hi! Looks like additional info is required for this issue to be addressed.
5763 Don't forget to provide this within the next few days to keep your ticket open.
58- close-issue-message: 'Issue closed due to no response from user.'
64+ close-issue-message: >
65+ Issue closed due to no response from user.
5966 only-labels: '🚏 Awaiting User Response'
6067 labels-to-remove-when-unstale: '🚏 Awaiting User Response'
6168 stale-issue-label: 'πŸ›‘ No Response'
6269 close-issue-label: 'πŸ•ΈοΈ Inactive'
70+ exempt-issue-labels: 'πŸ“Œ Keep Open,🚧 Alternative Exists'
71+
72+ alternative-exists:
73+ name: Mark Issues with Alternative Exists
74+ runs-on: ubuntu-latest
75+ needs: await-user-response
76+
77+ steps:
78+ - name: Mark Issues with Alternative Exists
79+ # Close Stale Issues and PRs
80+ # https://github.com/marketplace/actions/close-stale-issues
81+ uses: actions/stale@v9
82+ with:
83+ repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
84+ days-before-stale: 7
85+ days-before-close: 7
86+ operations-per-run: 30
87+ remove-stale-when-updated: true
88+ stale-issue-message: >
89+ This issue was marked as having an alternative solution available. Did this help you out, and this issue can be closed?
90+ Please confirm by commenting to keep it open, otherwise it will be closed in 7 days.
91+ close-issue-message: >
92+ Issue closed automatically due to no confirmation regarding the alternative solution.
93+ only-labels: '🚧 Alternative Exists'
94+ stale-issue-label: '🚏 Awaiting User Response'
95+ close-issue-label: 'πŸ•ΈοΈ Inactive'
6396 exempt-issue-labels: 'πŸ“Œ Keep Open'
97+ labels-to-add-when-unstale: 'πŸ“Œ Keep Open'