Run ruff
This commit is contained in:
parent
1830c3f645
commit
68f7c3ab43
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user