Bläddra i källkod

Updated lock / unlock actions

Scott Lahteine 3 år sedan
förälder
incheckning
842dea4bd5

+ 0
- 40
.github/lock.yml Visa fil

@@ -1,40 +0,0 @@
1
-#
2
-# Configuration for Lock Threads - https://github.com/dessant/lock-threads-app
3
-#
4
-
5
-# Number of days of inactivity before a closed issue or pull request is locked
6
-daysUntilLock: 60
7
-
8
-# Skip issues and pull requests created before a given timestamp. Timestamp must
9
-# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable
10
-skipCreatedBefore: false
11
-
12
-# Issues and pull requests with these labels will be ignored. Set to `[]` to disable
13
-exemptLabels: [ 'no-locking' ]
14
-
15
-# Label to add before locking, such as `outdated`. Set to `false` to disable
16
-lockLabel: false
17
-
18
-# Comment to post before locking. Set to `false` to disable
19
-lockComment: >
20
-  This thread has been automatically locked since there has not been
21
-  any recent activity after it was closed. Please open a new issue for
22
-  related bugs.
23
-
24
-# Assign `resolved` as the reason for locking. Set to `false` to disable
25
-setLockReason: true
26
-
27
-# Limit to only `issues` or `pulls`
28
-# only: issues
29
-
30
-# Optionally, specify configuration settings just for `issues` or `pulls`
31
-# issues:
32
-#   exemptLabels:
33
-#     - help-wanted
34
-#   lockLabel: outdated
35
-
36
-# pulls:
37
-#   daysUntilLock: 30
38
-
39
-# Repository to extend settings from
40
-# _extends: repo

+ 2
- 1
.github/workflows/close-stale.yml Visa fil

@@ -7,7 +7,7 @@ name: "Close stale issues"
7 7
 
8 8
 on:
9 9
   schedule:
10
-  - cron: "0 1 * * *"
10
+  - cron: "22 1 * * *"
11 11
 
12 12
 jobs:
13 13
   stale:
@@ -20,3 +20,4 @@ jobs:
20 20
         days-before-stale: 30
21 21
         days-before-close: 5
22 22
         stale-issue-label: 'stale-closing-soon'
23
+        exempt-issue-labels: 'T: Feature Request'

+ 15
- 5
.github/workflows/lock-closed.yml Visa fil

@@ -3,16 +3,26 @@
3 3
 # Lock closed issues after a period of inactivity
4 4
 #
5 5
 
6
-name: "Lock closed issue"
6
+name: 'Lock threads'
7 7
 
8 8
 on:
9
-  issues:
10
-    types: [closed]
9
+  schedule:
10
+    - cron: '59 * * * *'
11 11
 
12 12
 jobs:
13 13
   lock:
14 14
     runs-on: ubuntu-latest
15 15
     steps:
16
-    - uses: OSDKDev/lock-issues@v1.1
16
+    - uses: dessant/lock-threads@v2
17 17
       with:
18
-        repo-token: "${{ secrets.GITHUB_TOKEN }}"
18
+        github-token: ${{ github.token }}
19
+        process-only: 'issues'
20
+        issue-lock-inactive-days: '60'
21
+        issue-exclude-created-before: ''
22
+        issue-exclude-labels: 'no-locking'
23
+        issue-lock-labels: ''
24
+        issue-lock-comment: >
25
+          This issue has been automatically locked since there
26
+          has not been any recent activity after it was closed.
27
+          Please open a new issue for related bugs.
28
+        issue-lock-reason: ''

+ 18
- 0
.github/workflows/unlock-reopened.yml Visa fil

@@ -0,0 +1,18 @@
1
+#
2
+# unlock-reopened.yml
3
+# Unlock an issue whenever it is re-opened
4
+#
5
+
6
+name: "Unlock reopened issue"
7
+
8
+on:
9
+  issues:
10
+    types: [reopened]
11
+
12
+jobs:
13
+  lock:
14
+    runs-on: ubuntu-latest
15
+    steps:
16
+    - uses: OSDKDev/unlock-issues@v1.1
17
+      with:
18
+        repo-token: "${{ secrets.GITHUB_TOKEN }}"

Laddar…
Avbryt
Spara