diff --git a/pkg/plugins/trigger/pull-request.go b/pkg/plugins/trigger/pull-request.go index d37dd3e5d..d39b824b8 100644 --- a/pkg/plugins/trigger/pull-request.go +++ b/pkg/plugins/trigger/pull-request.go @@ -144,12 +144,11 @@ func infoMsg(c Client, pr scm.PullRequest) error { return nil } - org, repo, a := orgRepoAuthor(pr) - author := string(a) + org, repo, _ := orgRepoAuthor(pr) - comment := fmt.Sprintf(`[jx-info] Hi @%s. We've detected that the pipelines in this repository are using a syntax that will soon be deprecated. -We'll continue to update you through PRs as we progress. Please check [#8589](https://github.com/jenkins-x/jx/issues/8589) for further information. -`, author) + comment := `[jx-info] Hi, we've detected that the pipelines in this repository are using a syntax that will soon be deprecated. +We'll continue to update you through PRs as we progress. Please check [#8589](https://www.github.com/jenkins-x/jx/issues/8589) for further information. +` if err := c.SCMProviderClient.CreateComment(org, repo, pr.Number, true, comment); err != nil { return errors.Wrap(err, "failed to comment info message")