# Commit message prefix

**URL:** <https://discourse.slicer.org/t/commit-message-prefix/10921>\
**Category:** Development\
**Created:** [March 30, 2020, 10:21pm UTC](https://discourse.slicer.org/t/commit-message-prefix/10921 "2020-03-30T22:21:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 30, 2020, 10:21pm UTC](https://discourse.slicer.org/t/commit-message-prefix/10921/1 "2020-03-30T22:21:23Z")

</div>

As discussed in [this issue](https://github.com/Slicer/Slicer/pull/4783#issuecomment-605662343), the `DOC:` prefix is now valid when writing commit message.

The [Commit Style Guide](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Style_Guide#Commits) and the [commit check](https://www.commitcheck.com) have both been updated.

For reference, here is the regex used to validate the commit title: `(BUG|COMP|DOC|ENH|PERF|STYLE)\: \w+`
