This commit is contained in:
Torjus Håkestad 2024-10-01 00:03:21 +02:00
parent 1830c3f645
commit 68f7c3ab43

View File

@ -10,6 +10,7 @@ DEFAULT_HEADERS = {
BRANCHES = ["nixos-unstable-small", "nixos-unstable", "nixos-24.05"]
@app.command()
def pr(pr: str):
"""Get status of pull request"""
@ -22,14 +23,13 @@ def pr(pr: str):
console = Console()
if pr_data["merged"] == False:
console.print(f":x: master", highlight=False)
if pr_data["merged"] is False:
console.print(":x: master", highlight=False)
for branch in BRANCHES:
console.print(f":x: {branch}", highlight=False)
return
console.print(f":white_check_mark: master", highlight=False)
console.print(":white_check_mark: master", highlight=False)
commit_sha = pr_data["merge_commit_sha"]
@ -44,8 +44,10 @@ def pr(pr: str):
else:
console.print(f":x: {branch}", highlight=False)
def main():
app()
if __name__ == "__main__":
main()