Remove superfluous continue clause in bot-repo-cleanup
This commit is contained in:
parent
89f1da0ca3
commit
c87472b0e2
@ -17,7 +17,6 @@ for repo in u.get_repos():
|
|||||||
# Proceed iff the repository is a fork (`parent` key is set) of a repository in our apps organization
|
# Proceed iff the repository is a fork (`parent` key is set) of a repository in our apps organization
|
||||||
if repo.parent.full_name.split('/')[0] != "YunoHost-Apps":
|
if repo.parent.full_name.split('/')[0] != "YunoHost-Apps":
|
||||||
print("| "+repo.name.ljust(20) + " | Skipping |")
|
print("| "+repo.name.ljust(20) + " | Skipping |")
|
||||||
continue
|
|
||||||
else:
|
else:
|
||||||
# If none of the PRs are opened by the bot, delete the repository
|
# If none of the PRs are opened by the bot, delete the repository
|
||||||
if not any([ (pr.user == u) for pr in list(repo.parent.get_pulls(state='open', sort='created')) ]):
|
if not any([ (pr.user == u) for pr in list(repo.parent.get_pulls(state='open', sort='created')) ]):
|
||||||
|
Loading…
Reference in New Issue
Block a user