create a github issue and return it ID
(ctx context.Context, gc *rateLimitHandlerClient, repositoryID, title, body string)
| 643 | |
| 644 | // create a github issue and return it ID |
| 645 | func (ge *githubExporter) createGithubIssue(ctx context.Context, gc *rateLimitHandlerClient, repositoryID, title, body string) (string, string, error) { |
| 646 | m := &createIssueMutation{} |
| 647 | input := githubv4.CreateIssueInput{ |
| 648 | RepositoryID: repositoryID, |
| 649 | Title: githubv4.String(title), |
| 650 | Body: (*githubv4.String)(&body), |
| 651 | } |
| 652 | |
| 653 | if err := gc.mutate(ctx, m, input, nil, ge.out); err != nil { |
| 654 | return "", "", err |
| 655 | } |
| 656 | |
| 657 | issue := m.CreateIssue.Issue |
| 658 | return issue.ID, issue.URL, nil |
| 659 | } |
| 660 | |
| 661 | // add a comment to an issue and return its ID |
| 662 | func (ge *githubExporter) addCommentGithubIssue(ctx context.Context, gc *rateLimitHandlerClient, subjectID string, body string) (string, string, error) { |