Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Feb 13, 2024
1 parent ffbf5e6 commit 765effe
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions runner_manager/backend/gcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,19 +172,17 @@ def setup_labels(
labels["status"] = self._sanitize_label_value(runner.status)
labels["busy"] = self._sanitize_label_value(str(runner.busy))
if webhook:
labels["repository"] = self._sanitize_label_value(
webhook.repository.name
)
labels["repository"] = self._sanitize_label_value(webhook.repository.name)
labels["organization"] = self._sanitize_label_value(
webhook.repository.organization if webhook.repository.organization else ""
webhook.repository.organization
if webhook.repository.organization
else ""
)
labels["workflow"] = self._sanitize_label_value(
webhook.workflow_job.workflow_name
)
labels["job"] = self._sanitize_label_value(webhook.workflow_job.name)
labels["run_id"] = self._sanitize_label_value(
webhook.workflow_job.run_id
)
labels["run_id"] = self._sanitize_label_value(webhook.workflow_job.run_id)
labels["run_attempt"] = self._sanitize_label_value(
webhook.workflow_job.run_attempt
)
Expand Down

0 comments on commit 765effe

Please sign in to comment.