👷(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:
Nathan Vasse
2023-01-05 15:04:25 +01:00
committed by NathanVss
parent fa46237e05
commit 7a61402d4e

View File

@@ -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))