Skip to content

Commit e2d5526

Browse files
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>
1 parent d344396 commit e2d5526

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runner/metrics/jobs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func CollectJobMetric(ctx context.Context, r *runner.Runner) error {
4040
job.Status, // label: status
4141
job.Conclusion, // label: conclusion
4242
job.RunnerName, // label: runner_name
43-
job.RepoID.String(), // label: repository
43+
job.RepositoryName, // label: repository
4444
strings.Join(job.Labels, " "), // label: requested_labels
4545
).Set(1)
4646
}

0 commit comments

Comments
 (0)