From a17ae9ae7e136b0745a235e94cfed687a5a4acd8 Mon Sep 17 00:00:00 2001 From: Jaz Date: Fri, 23 Feb 2024 15:58:12 -0500 Subject: [PATCH] add pr body --- internal/ldclient/flag_links.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/ldclient/flag_links.go b/internal/ldclient/flag_links.go index bee21c3f..68149765 100644 --- a/internal/ldclient/flag_links.go +++ b/internal/ldclient/flag_links.go @@ -99,6 +99,7 @@ func makeFlagLinkRep(event *github.PullRequestEvent, flagKey, message string) *l "message": message, "prNumber": strconv.Itoa(*pr.Number), "prTitle": *pr.Title, + "prBody": *pr.Body, "state": *pr.State, "avatarUrl": *pr.User.AvatarURL, "repoName": *event.Repo.FullName, @@ -110,7 +111,7 @@ func makeFlagLinkRep(event *github.PullRequestEvent, flagKey, message string) *l metadata["authorDisplayName"] = *pr.User.Name } else { metadata["authorDisplayName"] = *pr.User.Login - metadata["authorName"] = *pr.User.Login + metadata["authorLogin"] = *pr.User.Login } var timestamp *int64