m-lab / alertmanager-github-receiver

Prometheus Alertmanager webhook receiver that creates GitHub issues from alerts
Apache License 2.0
48 stars 23 forks source link

fix getOrgAndRepoFromIssue for enterprise #45

Closed LenaHoinkis closed 4 years ago

LenaHoinkis commented 4 years ago

Found a bug for enterprise in getOrgAndRepoFromIssue(), which occur when labels are used. It occurs because the enterprise URL path contains /api/v3/ at the beginning. I add some logic which reads only the two fields after the first occurred "repos"/


This change is Reviewable

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 140


Totals Coverage Status
Change from base Build 137: 0.0%
Covered Lines: 408
Relevant Lines: 408

💛 - Coveralls