github-exporter icon indicating copy to clipboard operation
github-exporter copied to clipboard

Add owning user to pull_request_count labels

Open j6s opened this issue 5 years ago • 0 comments

Resolves #30

I have noticed, that if multiple users (or orgs) share a repository with the same name, then the pull_request_count metrics will cause an error while collecting metrics because the same metric has already been collected. In most cases this is because one user has forked the repo of another user.

I have fixed this by adding the owning users name to the labels of the metric. While this solves the problem, it only makes a bit of sense since the number of pull requests of both repositories will always be the same. causing small amounts of duplicate data to be reported.

j6s avatar Dec 21 '20 16:12 j6s