(repo string, number int)
| 219 | } |
| 220 | |
| 221 | func extractCurrentIssueUpdateState(repo string, number int) (map[string]any, bool, error) { |
| 222 | issue, err := outcomeUpdateGHAPIGet(fmt.Sprintf("issues/%d", number), repo) |
| 223 | if err != nil { |
| 224 | return nil, false, err |
| 225 | } |
| 226 | return map[string]any{ |
| 227 | "title": mutableString(issue["title"]), |
| 228 | "body_hash": mutableBodyHash(issue["body"]), |
| 229 | "state": mutableString(issue["state"]), |
| 230 | "labels": extractNamedItems(issue["labels"], "name"), |
| 231 | "assignees": extractNamedItems(issue["assignees"], "login"), |
| 232 | }, false, nil |
| 233 | } |
| 234 | |
| 235 | func extractCurrentPullRequestUpdateState(repo string, number int) (map[string]any, bool, error) { |
| 236 | pullRequest, err := outcomeUpdateGHAPIGet(fmt.Sprintf("pulls/%d", number), repo) |
nothing calls this directly
no test coverage detected