Skip to content

Commit

Permalink
fix: correct parameter problem
Browse files Browse the repository at this point in the history
  • Loading branch information
saman2000hoseini committed Jul 12, 2023
1 parent f7f09c4 commit f65aa6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/webhook-proxy/handler/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ func (p *Proxy) proxyRequest(txt string, url string) bool {
func generateElementText(req *request.Jira) string {
return fmt.Sprintf(
"Type: %s\nSummary: %s\nIssuer: %s\nURL: %s",
req.Issue.Fields.RequestType.Name, req.Issue.Fields.Summary, req.User.Name,
req.Issue.Fields.CustomField11401.RequestType.Name, req.Issue.Fields.Summary, req.User.Name,
req.Issue.Fields.CustomField11401.Links.Web)
}
8 changes: 4 additions & 4 deletions internal/webhook-proxy/request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ type Jira struct {
Links struct {
Web string `json:"web"`
} `json:"_links"`
RequestType struct {
Name string `json:"name"`
Description string `json:"description"`
} `json:"requestType"`
} `json:"customfield_11401"`
RequestType struct {
Name string `json:"name"`
Description string `json:"description"`
} `json:"requestType"`
Summary string `json:"summary"`
IssueType struct {
Description string `json:"description"`
Expand Down

0 comments on commit f65aa6a

Please sign in to comment.