From 86f02c758bdaa3ba7c5d3dd4dbad8a4c897a28ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 4 Nov 2020 17:19:56 +0100 Subject: 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: --- .gitlab-ci/check-commit-log.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.gitlab-ci') 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 -- cgit v1.2.1