Skip to content

Commit

Permalink
Get correct source URL components (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran authored Nov 16, 2024
1 parent bbe5db6 commit 3ab67c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/bin/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ def main() -> None:
except ValidationError:
sys.exit(f"Missing or invalid SNAPSHOT: {snapshot_str}")

owner, repo = snapshot.components[0].source.git.url.path.split("/")[1:]
pr_number = os.environ.get("PR_NUMBER", "")
labels = get_pr_labels(pr_number, repo=snapshot.application)
labels = get_pr_labels(pr_number, owner=owner, repo=repo)
app_name = os.environ.get("APP_NAME")
components = os.environ.get("COMPONENTS", "").split()
components_arg = chain.from_iterable(("--component", component) for component in components)
Expand Down

0 comments on commit 3ab67c2

Please sign in to comment.