From d2d852e549b11e07a847ff88ddc712245bd7d2e7 Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 7 May 2021 18:58:52 -0400 Subject: [PATCH] Add Github issue lock and support bot [skip ci] --- .github/config.yml | 2 -- .github/support.yml | 14 -------------- .github/workflows/lock.yml | 21 +++++++++++++++++++++ .github/workflows/support.yml | 21 +++++++++++++++++++++ 4 files changed, 42 insertions(+), 16 deletions(-) delete mode 100644 .github/config.yml delete mode 100644 .github/support.yml create mode 100644 .github/workflows/lock.yml create mode 100644 .github/workflows/support.yml diff --git a/.github/config.yml b/.github/config.yml deleted file mode 100644 index 42b8c947e..000000000 --- a/.github/config.yml +++ /dev/null @@ -1,2 +0,0 @@ -todo: - keyword: "TODO" diff --git a/.github/support.yml b/.github/support.yml deleted file mode 100644 index 097354748..000000000 --- a/.github/support.yml +++ /dev/null @@ -1,14 +0,0 @@ -# Configuration for support-requests - https://github.com/dessant/support-requests - -# Label used to mark issues as support requests -supportLabel: 'Type: Support' -# Comment to post on issues marked as support requests. Add a link -# to a support page, or set to `false` to disable -#TODO: Update Discord Link -supportComment: > - We use the issue tracker exclusively for bug reports and feature requests. - However, this issue appears to be a support request. Please hop over onto our [Discord](https://discord.gg/r5wJPt9) or [Subreddit](https://reddit.com/r/prowlarr) -# Whether to close issues marked as support requests -close: true -# Whether to lock issues marked as support requests -lock: false \ No newline at end of file diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 000000000..83af1dd62 --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,21 @@ +name: 'Lock threads' + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v2 + with: + github-token: ${{ github.token }} + issue-lock-inactive-days: '90' + issue-exclude-created-before: '' + issue-exclude-labels: '' + issue-lock-labels: '' + issue-lock-comment: '' + issue-lock-reason: 'resolved' + process-only: '' diff --git a/.github/workflows/support.yml b/.github/workflows/support.yml new file mode 100644 index 000000000..46ce76c8b --- /dev/null +++ b/.github/workflows/support.yml @@ -0,0 +1,21 @@ +name: 'Support requests' + +on: + issues: + types: [labeled, unlabeled, reopened] + +jobs: + support: + runs-on: ubuntu-latest + steps: + - uses: dessant/support-requests@v2 + with: + github-token: ${{ github.token }} + support-label: 'Type: Support' + issue-comment: > + :wave: @{issue-author}, we use the issue tracker exclusively + for bug reports and feature requests. However, this issue appears + to be a support request. Please hop over onto our [Discord](https://prowlarr.com/discord) + or [Subreddit](https://reddit.com/r/prowlarr) + close-issue: true + lock-issue: false \ No newline at end of file