Try to match against full repository name first, so that we can make specific
rules for specific repositories (github)
This commit is contained in:
parent
66d2ef2c26
commit
e2d60a541c
1 changed files with 3 additions and 3 deletions
|
@ -263,10 +263,10 @@ class Module(ModuleManager.BaseModule):
|
|||
repo_hooked = False
|
||||
for server_id, channel_name, hooked_repos) in hooks:
|
||||
found_hook = None
|
||||
if repo_username and repo_username in hooked_repos:
|
||||
found_hook = hooked_repos[repo_username]
|
||||
elif full_name and full_name in hooked_repos:
|
||||
if full_name and full_name in hooked_repos:
|
||||
found_hook = hooked_repos[full_name]
|
||||
elif repo_username and repo_username in hooked_repos:
|
||||
found_hook = hooked_repos[repo_username]
|
||||
elif organisation and organisation in hooked_repos:
|
||||
found_hook = hooked_repos[organisation]
|
||||
|
||||
|
|
Loading…
Reference in a new issue