Skip to content

Commit

Permalink
Merge pull request #375 from camptocamp/fix
Browse files Browse the repository at this point in the history
Fix None job in logs URL
  • Loading branch information
sbrunner authored Jun 17, 2024
2 parents d5a321e + b122648 commit 54a67c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions github_app_geo_project/views/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ def create_checks(
sub_name: str | None = None,
) -> github.CheckRun.CheckRun:
"""Create the GitHub check run."""
# Get the job id from the database
session.flush()

service_url = service_url if service_url.endswith("/") else service_url + "/"
service_url = urllib.parse.urljoin(service_url, "logs/")
service_url = urllib.parse.urljoin(service_url, str(job.id))
Expand Down

0 comments on commit 54a67c0

Please sign in to comment.