From 11ab0cb8c8b2906e775c3c8d2dbfec5e1ce9180a Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Sun, 3 Apr 2022 05:19:22 +0000 Subject: [PATCH] Lock issues and pull requests after close Ref https://github.com/roboll/helmfile/issues/1824 --- .github/workflows/lock.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/lock.yaml diff --git a/.github/workflows/lock.yaml b/.github/workflows/lock.yaml new file mode 100644 index 00000000..db93a965 --- /dev/null +++ b/.github/workflows/lock.yaml @@ -0,0 +1,30 @@ +# Copyright 2022 The Helmfile Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: 'Lock closed' +on: + 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: 1 + issue-lock-reason: 'resolved' + pr-lock-inactive-days: 1 + pr-lock-reason: 'resolved'