👷(ci) update gitmojis json url
The repostiory containing the list of valid emojis just got transformed into a monorepo causing the old url to be obsolete.
This commit is contained in:
@@ -28,7 +28,7 @@ class GitmojiTitle(LineRule):
|
||||
title contains one of them.
|
||||
"""
|
||||
gitmojis = requests.get(
|
||||
"https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/data/gitmojis.json"
|
||||
"https://raw.githubusercontent.com/carloscuesta/gitmoji/master/packages/gitmojis/src/gitmojis.json"
|
||||
).json()["gitmojis"]
|
||||
emojis = [item["emoji"] for item in gitmojis]
|
||||
pattern = r"^({:s})\(.*\)\s[a-z].*$".format("|".join(emojis))
|
||||
|
||||
Reference in New Issue
Block a user