add a comment to an issue and return its ID
(ctx context.Context, gc *rateLimitHandlerClient, subjectID string, body string)
| 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) { |
| 663 | m := &addCommentToIssueMutation{} |
| 664 | input := githubv4.AddCommentInput{ |
| 665 | SubjectID: subjectID, |
| 666 | Body: githubv4.String(body), |
| 667 | } |
| 668 | |
| 669 | if err := gc.mutate(ctx, m, input, nil, ge.out); err != nil { |
| 670 | return "", "", err |
| 671 | } |
| 672 | |
| 673 | node := m.AddComment.CommentEdge.Node |
| 674 | return node.ID, node.URL, nil |
| 675 | } |
| 676 | |
| 677 | func (ge *githubExporter) editCommentGithubIssue(ctx context.Context, gc *rateLimitHandlerClient, commentID, body string) (string, string, error) { |
| 678 | m := &updateIssueCommentMutation{} |