Skip to content

Commit aff330e

Browse files
committed
🚨(gitlint) Allow uppercase in commit messages
Many developers use uppercase as the first letter in their commit messages, it creates an error. We will allow uppercase in commit messages to lower frustration when committing.
1 parent bcdaedb commit aff330e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to
1919

2020
- 🧑‍💻(frontend) change literal section open source #702
2121
- ♻️(frontend) replace cors proxy for export #695
22+
- 🚨(gitlint) Allow uppercase in commit messages #756
2223

2324
## Fixed
2425

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ All commit messages must adhere to the following format:
3535

3636
* <**gitmoji**>: Use a gitmoji to represent the purpose of the commit. For example, ✨ for adding a new feature or 🔥 for removing something, see the list here: <https://gitmoji.dev/>.
3737
* **(type)**: Describe the type of change. Common types include `backend`, `frontend`, `CI`, `docker` etc...
38-
* **title**: A short, descriptive title for the change, starting with a lowercase character.
38+
* **title**: A short, descriptive title for the change.
3939
* **description**: Include additional details about what was changed and why.
4040

4141
### Example Commit Message

gitlint/gitlint_emoji.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def validate(self, title, _commit):
3131
"https://raw.githubusercontent.com/carloscuesta/gitmoji/master/packages/gitmojis/src/gitmojis.json"
3232
).json()["gitmojis"]
3333
emojis = [item["emoji"] for item in gitmojis]
34-
pattern = r"^({:s})\(.*\)\s[a-z].*$".format("|".join(emojis))
34+
pattern = r"^({:s})\(.*\)\s[a-zA-Z].*$".format("|".join(emojis))
3535
if not re.search(pattern, title):
3636
violation_msg = 'Title does not match regex "<gitmoji>(<scope>) <subject>"'
3737
return [RuleViolation(self.id, violation_msg, title)]

0 commit comments

Comments
 (0)