Pārlūkot izejas kodu

Add maintenance actions

Scott Lahteine 4 gadus atpakaļ
vecāks
revīzija
d55a53f9bb

+ 40
- 0
.github/lock.yml Parādīt failu

@@ -0,0 +1,40 @@
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

+ 22
- 0
.github/workflows/close-stale.yml Parādīt failu

@@ -0,0 +1,22 @@
1
+#
2
+# close-stale.yml
3
+# Close open issues after a period of inactivity
4
+#
5
+
6
+name: "Close stale issues"
7
+
8
+on:
9
+  schedule:
10
+  - cron: "56 * * * *"
11
+
12
+jobs:
13
+  stale:
14
+    runs-on: ubuntu-latest
15
+    steps:
16
+    - uses: actions/stale@v3
17
+      with:
18
+        repo-token: ${{ secrets.GITHUB_TOKEN }}
19
+        stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label / comment or this will be closed in 5 days.'
20
+        days-before-stale: 30
21
+        days-before-close: 5
22
+        stale-issue-label: 'stale-closing-soon'

+ 18
- 0
.github/workflows/lock-closed.yml Parādīt failu

@@ -0,0 +1,18 @@
1
+#
2
+# lock-closed.yml
3
+# Lock closed issues after a period of inactivity
4
+#
5
+
6
+name: "Lock closed issue"
7
+
8
+on:
9
+  issues:
10
+    types: [closed]
11
+
12
+jobs:
13
+  lock:
14
+    runs-on: ubuntu-latest
15
+    steps:
16
+    - uses: OSDKDev/lock-issues@v1.1
17
+      with:
18
+        repo-token: "${{ secrets.GITHUB_TOKEN }}"

+ 0
- 1
.github/workflows/test-builds.yml Parādīt failu

@@ -9,7 +9,6 @@ on:
9 9
   pull_request:
10 10
     branches:
11 11
     - bugfix-2.0.x
12
-    - dev-2.1.x
13 12
     paths-ignore:
14 13
     - config/**
15 14
     - data/**

Notiek ielāde…
Atcelt
Saglabāt