MCPcopy Create free account
hub / github.com/atripati/ark / simplifyIssue

Function simplifyIssue

pkg/tools/github.go:936–952  ·  view source on GitHub ↗
(raw string)

Source from the content-addressed store, hash-verified

934}
935
936func simplifyIssue(raw string) (string, error) {
937 var i map[string]interface{}
938 if err := json.Unmarshal([]byte(raw), &i); err != nil {
939 return raw, nil
940 }
941
942 simple := stripNulls(map[string]interface{}{
943 "number": i["number"],
944 "title": i["title"],
945 "state": i["state"],
946 "url": i["html_url"],
947 "created_at": i["created_at"],
948 })
949
950 out, _ := json.Marshal(simple)
951 return string(out), nil
952}
953
954func simplifyPRList(raw string) (string, error) {
955 var prs []map[string]interface{}

Callers 1

createIssueMethod · 0.85

Calls 1

stripNullsFunction · 0.85

Tested by

no test coverage detected