MCPcopy Index your code
hub / github.com/git-bug/git-bug / addCommentGithubIssue

Method addCommentGithubIssue

bridge/github/export.go:662–675  ·  view source on GitHub ↗

add a comment to an issue and return its ID

(ctx context.Context, gc *rateLimitHandlerClient, subjectID string, body string)

Source from the content-addressed store, hash-verified

660
661// add a comment to an issue and return its ID
662func (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
677func (ge *githubExporter) editCommentGithubIssue(ctx context.Context, gc *rateLimitHandlerClient, commentID, body string) (string, string, error) {
678 m := &updateIssueCommentMutation{}

Callers 1

exportBugMethod · 0.95

Calls 2

mutateMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected