diff --git a/.github/DISCUSSION_TEMPLATE/actions.yml b/.github/DISCUSSION_TEMPLATE/actions.yml index 0dacb1f..a706687 100644 --- a/.github/DISCUSSION_TEMPLATE/actions.yml +++ b/.github/DISCUSSION_TEMPLATE/actions.yml @@ -1,6 +1,6 @@ --- title: "" -labels: [actions] +labels: [Actions] body: - type: markdown attributes: diff --git a/.github/workflows/discussions-stale.yml b/.github/workflows/discussions-stale.yml new file mode 100644 index 0000000..c394919 --- /dev/null +++ b/.github/workflows/discussions-stale.yml @@ -0,0 +1,39 @@ +--- +name: Close Stale Discussions + +on: + schedule: + - cron: '00 11 * * *' + workflow_dispatch: + inputs: + dry-run: + description: 'Run the action without closing any discussions' + type: boolean + +jobs: + close-stale-discussions: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + category: + - 'Actions' + - 'GSMS' + - 'Sunshine' + - 'Themerr' + steps: + - name: stalesweeper + uses: steffen-karlsson/stalesweeper@v1.1.1 + with: + repo-token: ${{ secrets.GH_BOT_TOKEN }} + message: > + It seems this discussion hasn't had any activity in the past 90 days. + To help keep our backlog tidy, we'll be closing this discussion. + If it's still something you'd like addressed, please let us know by leaving a comment. + Thanks! + days-before-close: '90' + close-unanswered: 'true' + category: ${{ matrix.category }} + close-reason: 'OUTDATED' + # todo: dry-run default is true during testing + dry-run: ${{ github.event_name == 'schedule' && 'true' || github.event.inputs.dry-run }}