auto ask for feedback on "Alternative Exists"

c22ad7c2e802b11280b2e63d9e6f341032e1e80e

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +41 -7Showing whitespace changes
.github/workflows/job-close-stale.yml+41 -7
@@ -1,17 +1,18 @@
1name: 🎯 Close Stale Issues/PRs Job1name: 🎯 Close Stale Issues/PRs Workflow
22
3on:3on:
4 workflow_dispatch:4 workflow_dispatch:
5 schedule:5 schedule:
6 - cron: '0 0 * * *' # Runs every day at midnight UTC6 - cron: '0 0 * * *' # Runs every day at midnight UTC
7 issues:
8 types: [labeled, unlabeled, edited]
79
8jobs:10jobs:
9 close-stale:11 mark-inactivity:
10 name: Close Stale Issues/PRs Job12 name: Mark Issues/PRs without Activity
11 runs-on: ubuntu-latest13 runs-on: ubuntu-latest
1214
13 steps:15 steps:
14 # Comment on, then close issues that haven't been updated for ages
15 - name: Mark Issues/PRs without Activity16 - name: Mark Issues/PRs without Activity
16 # Close Stale Issues and PRs17 # Close Stale Issues and PRs
17 # https://github.com/marketplace/actions/close-stale-issues18 # https://github.com/marketplace/actions/close-stale-issues
@@ -41,8 +42,13 @@ jobs:
41 exempt-pr-labels: 'πŸ“Œ Keep Open'42 exempt-pr-labels: 'πŸ“Œ Keep Open'
42 labels-to-add-when-unstale: 'πŸ“Œ Keep Open'43 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 one45 await-user-response:
45 - name: Mark Issues with Requested Response46 name: Mark Issues/PRs Awaiting User Response
47 runs-on: ubuntu-latest
48 needs: mark-inactivity
49
50 steps:
51 - name: Mark Issues/PRs Awaiting User Response
46 # Close Stale Issues and PRs52 # Close Stale Issues and PRs
47 # https://github.com/marketplace/actions/close-stale-issues53 # https://github.com/marketplace/actions/close-stale-issues
48 uses: actions/stale@v954 uses: actions/stale@v9
@@ -55,9 +61,37 @@ jobs:
55 stale-issue-message: >61 stale-issue-message: >
56 Hi! Looks like additional info is required for this issue to be addressed.62 Hi! Looks like additional info is required for this issue to be addressed.
57 Don't forget to provide this within the next few days to keep your ticket open.63 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.
59 only-labels: '🚏 Awaiting User Response'66 only-labels: '🚏 Awaiting User Response'
60 labels-to-remove-when-unstale: '🚏 Awaiting User Response'67 labels-to-remove-when-unstale: '🚏 Awaiting User Response'
61 stale-issue-label: 'πŸ›‘ No Response'68 stale-issue-label: 'πŸ›‘ No Response'
62 close-issue-label: 'πŸ•ΈοΈ Inactive'69 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'
63 exempt-issue-labels: 'πŸ“Œ Keep Open'96 exempt-issue-labels: 'πŸ“Œ Keep Open'
97 labels-to-add-when-unstale: 'πŸ“Œ Keep Open'