Skip to content

Commit

Permalink
Add link to PR on Github in logger context (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobValdemar authored Aug 27, 2020
1 parent 51a54ff commit ca9f0a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion issue_release_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ func (handler *PRCreateHandler) Handle(ctx context.Context, eventType, deliveryI
Int64("github_installation_id", installationID).
Str("github_repository_owner", repository.GetOwner().GetLogin()).
Str("github_repository_name", repository.GetName()).
Int("github_pr_num", prNum)
Int("github_pr_num", prNum).
Str("github_pr_link", event.GetPullRequest().GetHTMLURL())

logger := logctx.Logger()
ctx = logger.WithContext(ctx)
Expand Down

0 comments on commit ca9f0a0

Please sign in to comment.