From b9d24913e8d3318183fe7544e23eccf4ffe891ae Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Thu, 26 Sep 2024 14:10:16 +0200 Subject: [PATCH] Create lock-closed-issues-discussions-and-prs.yml --- ...lock-closed-issues-discussions-and-prs.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/lock-closed-issues-discussions-and-prs.yml diff --git a/.github/workflows/lock-closed-issues-discussions-and-prs.yml b/.github/workflows/lock-closed-issues-discussions-and-prs.yml new file mode 100644 index 000000000..803576abb --- /dev/null +++ b/.github/workflows/lock-closed-issues-discussions-and-prs.yml @@ -0,0 +1,35 @@ +name: Lock Closed Issues, PRs, and Discussions + +on: + schedule: + - cron: '0 1 * * *' + workflow_dispatch: + inputs: + reason: + description: 'Reason for manual trigger' + required: false + default: 'Manual run' + +jobs: + lock-threads: + runs-on: ubuntu-latest + steps: + - name: Lock threads after 30 days of inactivity + uses: dessant/lock-threads@v5 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-inactive-days: '30' + pr-inactive-days: '30' + discussion-inactive-days: '30' + issue-lock-reason: 'resolved' + pr-lock-reason: 'resolved' + log-output: true + issue-comment: > + This issue has been automatically locked. + If you have a related issue, please open a new one with a link to this issue. + pr-comment: > + This pull request has been automatically locked. + If you have a related pull request, please open a new one with a link to this PR. + discussion-comment: > + This discussion has been automatically locked. + If you have a related topic, please open a new discussion with a link to this one.