(issue interface{})
| 137 | } |
| 138 | |
| 139 | func loadIssue(issue interface{}) error { |
| 140 | data, err := os.ReadFile("./script/mock-issue.json") |
| 141 | |
| 142 | if err != nil { |
| 143 | return fmt.Errorf("unable to read file: %v", err) |
| 144 | } |
| 145 | |
| 146 | if err := json.Unmarshal(data, issue); err != nil { |
| 147 | return fmt.Errorf("unable to unmarshal JSON: %v", err) |
| 148 | } |
| 149 | |
| 150 | return nil |
| 151 | } |
| 152 | |
| 153 | func setIssueProperties(application *TestApplicationSet, issue *github.Issue) error { |
| 154 | issue.Title = &application.issueTitle |
no outgoing calls
no test coverage detected