mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
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>
This commit is contained in:
parent
682a8bdd8e
commit
86f02c758b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user