mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-21 18:22:39 +10:00
Update exit codes
This commit is contained in:
@@ -17,7 +17,8 @@ async def check():
|
||||
repo = repository.attributes
|
||||
|
||||
if repo["archived"]:
|
||||
exit(1)
|
||||
exit("Repository is archived")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.get_event_loop().run_until_complete(check())
|
||||
|
||||
Reference in New Issue
Block a user