fix(keeper): use the target URL when updating status
the `TargetURL` defined in the keeper config was not used when pushing status update to the git provider, but now that we have a lighthouse web UI at we should use it
@@ -345,9 +345,9 @@ func (sc *statusController) setStatuses(all []PullRequest, pool map[string]prWit
}
}
if wantState != strings.ToLower(string(actualState)) || wantDesc != actualDesc {
- reportURL := ""
+ reportURL := targetURL(sc.config, pr, log)
// BitBucket Server requires a valid URL in all status reports
- if sc.spc.ProviderType() == "stash" {
+ if sc.spc.ProviderType() == "stash" && reportURL == "" {
reportURL = "https://github.com/jenkins-x/lighthouse"
}
if _, err := sc.spc.CreateGraphQLStatus(
