github-exporter
github-exporter copied to clipboard
Add owning user to pull_request_count labels
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.