Skip to content

Commit e1699a9

Browse files
chore: housekeeping tasks (#1465)
* chore: remove unecessary pre-commit hook Signed-off-by: Oliver Bähler <[email protected]> * fix(helm): remove incompatible comparison Signed-off-by: Oliver Bähler <[email protected]> * chore: add stale-workflow Signed-off-by: Oliver Bähler <[email protected]> --------- Signed-off-by: Oliver Bähler <[email protected]>
1 parent 4e4a0c1 commit e1699a9

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

.github/workflows/stale.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Stale-Bot
2+
permissions: {}
3+
4+
on:
5+
schedule:
6+
- cron: '0 0 * * *' # Run every day at midnight
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
actions: write
13+
contents: write # only for delete-branch option
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- name: Close stale pull requests
18+
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639
19+
with:
20+
stale-issue-message: 'This pull request has been automatically closed because it has been inactive for more than 60 days. Please reopen if you still intend to submit this pull request.'
21+
days-before-stale: 60
22+
days-before-close: 30
23+
days-before-pr-stale: 30
24+
stale-pr-message: 'This pull request has been marked as stale because it has been inactive for more than 30 days. Please update this pull request or it will be automatically closed in 7 days.'
25+
stale-pr-label: stale

charts/capsule/templates/crd-lifecycle/job.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ metadata:
1919
{{- include "capsule.labels" . | nindent 4 }}
2020
spec:
2121
backoffLimit: {{ $Values.backoffLimit }}
22-
{{- if ge $Values.ttlSecondsAfterFinished 0.0 }}
2322
ttlSecondsAfterFinished: {{ $Values.ttlSecondsAfterFinished }}
24-
{{- end }}
2523
template:
2624
metadata:
2725
name: "{{ include "capsule.crds.name" . }}"

charts/capsule/templates/post-install/job.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ metadata:
1717
{{- end }}
1818
spec:
1919
backoffLimit: {{ $Values.backoffLimit }}
20-
{{- if ge $Values.ttlSecondsAfterFinished 0.0 }}
2120
ttlSecondsAfterFinished: {{ $Values.ttlSecondsAfterFinished }}
22-
{{- end }}
2321
template:
2422
metadata:
2523
labels:

charts/capsule/templates/pre-delete/job.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ metadata:
1717
{{- end }}
1818
spec:
1919
backoffLimit: {{ $Values.backoffLimit }}
20-
{{- if ge $Values.ttlSecondsAfterFinished 0.0 }}
2120
ttlSecondsAfterFinished: {{ $Values.ttlSecondsAfterFinished }}
22-
{{- end }}
2321
template:
2422
metadata:
2523
labels:

0 commit comments

Comments
 (0)