From 15b5aa91433b2f5fe3fd170add8d89b03266dbd1 Mon Sep 17 00:00:00 2001 From: Deluan Date: Mon, 6 Mar 2023 20:01:42 -0500 Subject: [PATCH] Add stale/lock-threads bot --- .github/workflows/stale.yml | 52 +++++++++++++++++++++++++++++++++++++ CONTRIBUTING.md | 8 +++--- 2 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..c490bc39 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,52 @@ +name: 'Close stale and lock closed issues and PRs' +on: + workflow_dispatch: + schedule: + - cron: '30 1 * * *' +permissions: + contents: read +jobs: + stale: + permissions: + issues: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v4.0.0 + with: + issue-inactive-days: 21 + issue-comment: > + This issue has been automatically locked since there + has not been any recent activity after it was closed. + Please open a new issue for related bugs. + pr-comment: > + This pull request has been automatically locked since there + has not been any recent activity after it was closed. + Please open a new issue for related bugs. + - uses: actions/stale@v7 + with: + debug-only: true + operations-per-run: 999 + days-before-issue-stale: 180 + days-before-pr-stale: 180 + days-before-issue-close: 30 + days-before-pr-close: 30 + stale-issue-message: > + This issue has been automatically marked as stale because it has not had + recent activity. The resources of the Navidrome team are limited, and so we are asking for your help. + + If this is a **bug** and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open. + + If this is a **feature request**, and you feel that it is still relevant and valuable, please tell us why. + + This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions. + stale-pr-message: This PR has been automatically marked as stale because it has not had + recent activity. The resources of the Navidrome team are limited, and so we are asking for your help. + + Please check https://github.com/navidrome/navidrome/blob/master/CONTRIBUTING.md#pull-requests and verify that this code contribution fits with the description. If yes, tell it in a comment. + + This PR will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions. + stale-issue-label: 'stale' + exempt-issue-labels: 'keep,security' + stale-pr-label: 'stale' + exempt-pr-labels: 'keep,security' diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6401d381..6c08ea2c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,12 +2,15 @@ Navidrome is a streaming service which allows you to enjoy your music collection from anywhere. We'd welcome you to contribute to our open source project and make Navidrome even better. There are some basic guidelines which you need to follow if you like to contribute to Navidrome. +- [Asking Support Questions](#asking-support-questions) - [Code of Conduct](#code-of-conduct) - [Issues](#issues) -- [Questions](#questions) - [Pull Requests](#pull-requests) +## Asking Support Questions +We have an active [discussion forum](https://github.com/navidrome/navidrome/discussions) where users and developers can ask questions. Please don't use the GitHub issue tracker to ask questions. + ## Code of Conduct Please read the following [Code of Conduct](https://github.com/navidrome/navidrome/blob/master/CODE_OF_CONDUCT.md). @@ -19,9 +22,6 @@ to the GitHub repository. **Before opening a new issue, please check if the issue has not been already made by searching the [issues](https://github.com/navidrome/navidrome/issues)** -## Questions -We would like to have discussions and general queries related to Navidrome on our [Discord channel](https://discord.gg/2qMuMyHfSV). - ## Pull requests Before submitting a pull request, ensure that you go through the following: - Open a corresponding issue for the Pull Request, if not existing. The issue can be opened following [these guidelines](#issues)