feat(cli): show release PR url in log messages

Makes navigating to the PR way easier when looking at the logs.

This requires a new `Forge.PullRequestURL()` method that needs to be
implemented for all forges.
This commit is contained in:
Julian Tölle 2024-09-06 23:24:02 +02:00
parent 2effe5e72d
commit e993d4ae8c
3 changed files with 7 additions and 2 deletions

View file

@ -51,6 +51,10 @@ func (g *GitHub) ReleaseURL(version string) string {
return fmt.Sprintf("https://github.com/%s/%s/releases/tag/%s", g.options.Owner, g.options.Repo, version)
}
func (g *GitHub) PullRequestURL(id int) string {
return fmt.Sprintf("https://github.com/%s/%s/pull/%d", g.options.Owner, g.options.Repo, id)
}
func (g *GitHub) GitAuth() transport.AuthMethod {
return &http.BasicAuth{
Username: g.options.Username,