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:
parent
d344396706
commit
e2d5526c5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue