From e2d5526c5cc54933c50f653abae88376085415e4 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Wed, 11 Feb 2026 17:50:22 +0200 Subject: [PATCH] Use the repository name for jobs The RepoID, OrgID and EnterpriseID are the entities that generated the webhook which notified us of the job running in the repo. The RepositoryName is the actual repository that started the job. Signed-off-by: Gabriel Adrian Samfira --- runner/metrics/jobs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/metrics/jobs.go b/runner/metrics/jobs.go index e508d9b1..33b51ab2 100644 --- a/runner/metrics/jobs.go +++ b/runner/metrics/jobs.go @@ -40,7 +40,7 @@ func CollectJobMetric(ctx context.Context, r *runner.Runner) error { job.Status, // label: status job.Conclusion, // label: conclusion job.RunnerName, // label: runner_name - job.RepoID.String(), // label: repository + job.RepositoryName, // label: repository strings.Join(job.Labels, " "), // label: requested_labels ).Set(1) }