Skip to content

Commit

Permalink
add check pr action
Browse files Browse the repository at this point in the history
  • Loading branch information
nyambati committed Mar 12, 2024
1 parent b1483e3 commit 1969164
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"LABEL": {
"name": "title needs formatting",
"color": "EEEEEE"
},
"CHECKS": {
"regexp": "^\\[stable\\/\\..+\\]: .+"
},
"MESSAGES": {
"success": "PR Title looks fine. 🙌",
"failure": "The title of your PR does not match the expected format. It **must** always contain a reference to the chart i.e [stable/my-cool-chart]: my cool PR",
"notice": ""
}
}
17 changes: 17 additions & 0 deletions .github/workflows/check_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "PR Title Checker"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
- labeled
- unlabeled

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: thehanimo/pr-title-checker@v1.4.2
with:
pass_on_octokit_error: false
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ spec:
successfulJobsHistoryLimit: {{ $.Values.successfulJobsHistoryLimit }}
failedJobsHistoryLimit: {{ $.Values.failedJobsHistoryLimit }}
concurrencyPolicy: {{ $.Values.concurrencyPolicy }}
activeDeadlineSeconds: {{ $.Values.activeDeadlineSeconds }}
ttlSecondsAfterFinished: {{ $.Values.ttlSecondsAfterFinished }}
jobTemplate:
spec:
template:
Expand Down Expand Up @@ -59,6 +61,4 @@ spec:
- name: KUBECOST_DIAGNOSTICS_URL
value: {{ required "Kubecost reports url is a required value" $.Values.kubecost.diagnosticsUrl | quote }}
restartPolicy: {{ $.Values.restartPolicy }}
activeDeadlineSeconds: {{ $.Values.activeDeadlineSeconds }}
ttlSecondsAfterFinished: {{ $.Values.ttlSecondsAfterFinished }}
{{- end }}

0 comments on commit 1969164

Please sign in to comment.