You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add GitHub action to auto-close inactive issues (#494)
Adds a new GitHub action to automatically close issues older than 6
months due to inactivity and comment on them every Friday at 12pm CET.
- **Scheduling**: Configures the action to run on a schedule,
specifically every Friday at 12pm CET, using a cron job.
- **Issue Handling**: Utilizes the `actions/stale` action to
automatically mark issues as stale after 180 days of inactivity and then
immediately close them.
- **Messaging**: Before closing, posts a comment on the stale issues and
pull requests to inform contributors of the closure due to inactivity,
with separate messages for issues and pull requests.
---
For more details, open the [Copilot Workspace
session](https://copilot-workspace.githubnext.com/uiuniversal/ngu-carousel?shareId=c8edbcf3-36e5-46a2-902c-43b44013b4d7).
- cron: '0 10 * * 5'# Scheduled to run every Friday at 12pm CET
6
+
7
+
jobs:
8
+
stale-issue-handler:
9
+
runs-on: ubuntu-latest
10
+
steps:
11
+
- uses: actions/checkout@v2
12
+
- name: Mark and close stale issues
13
+
uses: actions/stale@v9
14
+
with:
15
+
days-before-stale: 180
16
+
days-before-close: 0
17
+
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity for 6 months. It will be closed if no further activity occurs. Thank you for your contributions.'
18
+
close-issue-message: 'Closing this issue due to no activity for 6 months.'
19
+
stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity for 6 months. It will be closed if no further activity occurs. Thank you for your contributions.'
20
+
close-pr-message: 'Closing this PR due to no activity for 6 months.'
0 commit comments