Skip to content

Commit 6e61dd3

Browse files
mumoshuSajfer
authored andcommitted
Lock issues and pull requests after close
Ref roboll/helmfile#1824
1 parent f22ca12 commit 6e61dd3

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/lock.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2022 The Helmfile Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: 'Lock closed'
16+
on:
17+
schedule:
18+
- cron: '0 0 * * *'
19+
20+
jobs:
21+
lock:
22+
runs-on: 'ubuntu-latest'
23+
steps:
24+
- uses: 'dessant/lock-threads@v2'
25+
with:
26+
github-token: '${{ github.token }}'
27+
issue-lock-inactive-days: 1
28+
issue-lock-reason: 'resolved'
29+
pr-lock-inactive-days: 1
30+
pr-lock-reason: 'resolved'

0 commit comments

Comments
 (0)