Skip to content

Commit

Permalink
maint: add an Action to close old issues
Browse files Browse the repository at this point in the history
Contributors donate their free time to work on the project because they
enjoy it. If nobody cares about a problem it will likely remain open
forever, lost in a list of issues that no one minds.

A bulletin about the new Action will follow.

I think it's reasonable to expect users to try a little harder to help,
if they care about something. Simply bother colaborators can make them
feel less motivated to contribute.

Signed-off-by: Claudio André <[email protected]>
  • Loading branch information
claudioandre-br committed Jul 10, 2023
1 parent df007e3 commit 5404a48
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
###############################################################################
# _ _ _ _ _____ _
# | | | | | | | | | __ \(_)
# | | ___ | |__ _ __ | |_| |__ ___ | |__) |_ _ __ _ __ ___ _ __
# _ | |/ _ \| '_ \| '_ \ | __| '_ \ / _ \ | _ /| | '_ \| '_ \ / _ \ '__|
# | |__| | (_) | | | | | | | | |_| | | | __/ | | \ \| | |_) | |_) | __/ |
# \____/ \___/|_| |_|_| |_| \__|_| |_|\___| |_| \_\_| .__/| .__/ \___|_|
# | | | |
# |_| |_|
#
# Copyright (c) 2023 Claudio André <claudioandre.br at gmail.com>
#
# This program comes with ABSOLUTELY NO WARRANTY; express or implied.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, as expressed in version 2, seen at
# http://www.gnu.org/licenses/gpl-2.0.html
###############################################################################
# Github Action to close old issues automatically
# More info at https://github.com/openwall/john-packages

---
# Close Old Issues
#
# This Action will automatically closes issues after a given amount of time.
#
# Contributors donate free time to work on the project because they enjoy it.
# Discussing things that nobody cares about is not pleasant and takes a lot of time.
# And we can't force them to do it either. The issue will most likely remain open forever.
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"

permissions:
issues: write
pull-requests: write

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 30
days-before-issue-close: 14
exempt-issue-labels: "keep open"
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5404a48

Please sign in to comment.