Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jan 31, 2018
1 parent 70a3aea commit 673d803
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions create-github-hooks
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ if __name__ == "__main__":
repos[r]=None

#process repos
error = 0
for repo_name in repos:
gh = ghx
if exists (join(SCRIPT_DIR,"repos",repo_name,"repo_config.py")):
Expand All @@ -91,7 +90,6 @@ if __name__ == "__main__":
hooks = hk_conf.keys()
if not hooks:
print "==>Warning: No hook found for repository",repo_name
error = 1
continue

print "Found hooks:",hooks
Expand Down Expand Up @@ -125,4 +123,4 @@ if __name__ == "__main__":
repo.create_hook(**hook_conf)
api_rate_limits(gh)
print "Hook created in github.....success",hook
exit(error)

0 comments on commit 673d803

Please sign in to comment.