Skip to content

Commit

Permalink
Use SSO URL for logs links in linear issue text
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Nov 15, 2024
1 parent 29e2567 commit 0f7bc7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -1064,8 +1064,11 @@ func (s *submitServer) buildGenericIssueRequest(ctx context.Context, p parsedPay

username, isVerified := getUsernameFromPayload(p)

// Swap out rageshake API url for SSO-version
rageshakeLogsURL := strings.ReplaceAll(listingURL, "rageshake.", "rageshake-sso.")

// Add log links to the body
fmt.Fprintf(bodyBuf, "\n### [Rageshake Logs](%s)", listingURL)
fmt.Fprintf(bodyBuf, "\n### [Rageshake Logs](%s)", rageshakeLogsURL)
if isVerified {
fmt.Fprintf(bodyBuf, " | [User Admin](https://admin.beeper.com/user/%s)", username)
if bridgeLogsURL, megahungryLogsURL, err := makeGrafanaLogsURLs(username); err != nil {
Expand Down

0 comments on commit 0f7bc7d

Please sign in to comment.