Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SirEntropy committed Dec 13, 2024
1 parent 898dfc9 commit 9d42cc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cased/commands/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def _build_questionary_choices(project):
project_name=project,
)
branches = data.get("pull_requests", [])
print(branches)
deployable_branches = [
branch for branch in branches if branch["deployable"] is True
]
Expand All @@ -32,7 +33,7 @@ def _build_questionary_choices(project):

if not choices:
console.print(
f"[red]No deployable branches for project {project}. Please see more details at {CasedConstants.BASE_URL}/deployments/{project} [/red]" # noqa: E501
f"[red]No deployable branches for project {project}. Please see more details at {CasedConstants.BASE_URL}/projects/{project} [/red]" # noqa: E501
)
sys.exit(1)

Expand Down
3 changes: 1 addition & 2 deletions cased/commands/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from rich.console import Console
from rich.panel import Panel
from rich.progress import Progress
from rich.prompt import Prompt

from cased.commands.resources import projects
from cased.utils.api import validate_tokens
Expand Down Expand Up @@ -98,7 +97,7 @@ def login():
}

save_config(data)

console.print(Panel("[bold green]Login successful![/bold green]", expand=False))

# Ask user to select a project.
Expand Down

0 comments on commit 9d42cc4

Please sign in to comment.