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 <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2026-02-11 17:50:22 +02:00 committed by Gabriel
parent d344396706
commit e2d5526c5c

View file

@ -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)
}