[mutter] ci/check-commit-log: Ensure valid cogl and clutter prefixes
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] ci/check-commit-log: Ensure valid cogl and clutter prefixes
- Date: Mon, 16 Nov 2020 13:38:34 +0000 (UTC)
commit 86f02c758bdaa3ba7c5d3dd4dbad8a4c897a28ae
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Wed Nov 4 17:19:56 2020 +0100
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>
.gitlab-ci/check-commit-log.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/.gitlab-ci/check-commit-log.sh b/.gitlab-ci/check-commit-log.sh
index 99fa2b6da6..83118ad679 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]