summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-11-04 17:19:56 +0100
committerJonas Ådahl <jadahl@gmail.com>2020-11-16 14:12:45 +0100
commit86f02c758bdaa3ba7c5d3dd4dbad8a4c897a28ae (patch)
tree8c14e37dd2c19ff59c18f2d7997ad66e174ee0a6 /.gitlab-ci
parent682a8bdd8e9396ac2228a86094f7d1cdb9605a9c (diff)
downloadmutter-86f02c758bdaa3ba7c5d3dd4dbad8a4c897a28ae.tar.gz
ci/check-commit-log: Ensure valid cogl and clutter prefixes
Clutter is a "scope", so everything under should be its own "sub-prefix", e.g. changes to ClutterActor should be prefixed 'clutter/actor', ClutterFrameClock with 'clutter/frame-clock', CoglFramebuffer with 'cogl/framebuffer' etc. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1549>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/check-commit-log.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab-ci/check-commit-log.sh b/.gitlab-ci/check-commit-log.sh
index 99fa2b6da..83118ad67 100755
--- a/.gitlab-ci/check-commit-log.sh
+++ b/.gitlab-ci/check-commit-log.sh
@@ -32,6 +32,16 @@ function commit_message_subject_is_compliant() {
return 1
fi
+ if echo "$commit_message_subject" | grep -qe "\(^clutter-\|^Clutter\)"; then
+ echo " - message subject should not be prefixed with 'clutter-' or 'Clutter', use 'clutter/' instead"
+ return 1
+ fi
+
+ if echo "$commit_message_subject" | grep -qe "\(^cogl-\|^Cogl\)"; then
+ echo " - message subject should not be prefixed with 'cogl-' or 'Cogl', use 'cogl/' instead"
+ return 1
+ fi
+
if echo "$commit_message_subject" | grep -qe "\.[ch]:"; then
echo " - message subject prefix should not include .c, .h, etc."
return 1