mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2025-08-28 02:18:17 +00:00
look master branch name
This commit is contained in:
parent
df28506416
commit
90b748c1d4
@ -96,10 +96,7 @@ class GithubHook(WebhookBase):
|
||||
|
||||
def check_branch(self):
|
||||
"""check if commit on master branch"""
|
||||
master_branch = self.hook["repository"]["master_branch"]
|
||||
ref = self.hook["ref"]
|
||||
|
||||
return ref.endswith(master_branch)
|
||||
return self.hook.get("ref") == "refs/heads/master"
|
||||
|
||||
def check_commit_message(self):
|
||||
"""check if keyword in commit message is there"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user