mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-22 03:40:12 +00:00
check first line only for build trigger
This commit is contained in:
parent
5b75a80ee1
commit
f8deb96a5c
@ -82,7 +82,8 @@ class GithubHook(WebhookBase):
|
|||||||
def check_commit_message(self):
|
def check_commit_message(self):
|
||||||
"""check if keyword in commit message is there"""
|
"""check if keyword in commit message is there"""
|
||||||
message = self.hook["head_commit"]["message"]
|
message = self.hook["head_commit"]["message"]
|
||||||
return message.endswith(self.repo_conf["unstable_keyword"])
|
first_line = message.split("\n")[0]
|
||||||
|
return first_line.endswith(self.repo_conf["unstable_keyword"])
|
||||||
|
|
||||||
def _check_roadmap(self):
|
def _check_roadmap(self):
|
||||||
"""check if roadmap update needed"""
|
"""check if roadmap update needed"""
|
||||||
|
Loading…
Reference in New Issue
Block a user