You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/pull_request_template.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ This checklist is for your information.
26
26
-[ ] Bugfixes should be submitted against the `bugfix` branch.
27
27
-[ ] Give a meaningful name to your PR, as it may end up being used in the release notes.
28
28
-[ ] Your code is flake8 compliant.
29
-
-[ ] Your code is python 3.12 compliant.
29
+
-[ ] Your code is python 3.13 compliant.
30
30
-[ ] If this is a new feature and not a bug fix, you've included the proper documentation in the docs at https://github.com/DefectDojo/django-DefectDojo/tree/dev/docs as part of this PR.
31
31
-[ ] Model changes must include the necessary migrations in the dojo/db_migrations folder.
- name: Check update of "artifacthub.io/changes" HELM annotation
69
69
if: env.changed == 'true'
70
70
run: |
71
+
# fast fail if `git show` fails
72
+
set -e
73
+
set -o pipefail
74
+
71
75
target_branch=${{ env.ct-branch }}
72
76
73
77
echo "Checking Chart.yaml annotation changes"
74
78
75
79
# Get current branch annotation
76
80
current_annotation=$(yq e '.annotations."artifacthub.io/changes"' "helm/defectdojo/Chart.yaml")
81
+
echo "Current annotation: "
82
+
echo $current_annotation
77
83
78
84
# Get target branch version of Chart.yaml annotation
79
-
target_annotation=$(git show "${{ env.ct-branch }}:helm/defectdojo/Chart.yaml" | yq e '.annotations."artifacthub.io/changes"' -)
85
+
target_annotation=$(git show "origin/${{ env.ct-branch }}:helm/defectdojo/Chart.yaml" | yq e '.annotations."artifacthub.io/changes"' -)
86
+
echo "Target annotation: "
87
+
echo $target_annotation
80
88
81
89
if [[ "$current_annotation" == "$target_annotation" ]]; then
82
90
echo "::error file=helm/defectdojo/Chart.yaml::The 'artifacthub.io/changes' annotation has not been updated compared to ${{ env.ct-branch }}. For more, check the hint in 'helm/defectdojo/Chart.yaml'"
@@ -121,7 +129,7 @@ jobs:
121
129
# If this step fails, install https://github.com/losisin/helm-values-schema-json and run locally `helm schema --use-helm-docs` in `helm/defectdojo` before committing your changes.
0 commit comments