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

Method createGithubIssue

bridge/github/export.go:645–659  ·  view source on GitHub ↗

create a github issue and return it ID

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

Source from the content-addressed store, hash-verified

643
644// create a github issue and return it ID
645func (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
662func (ge *githubExporter) addCommentGithubIssue(ctx context.Context, gc *rateLimitHandlerClient, subjectID string, body string) (string, string, error) {

Callers 1

exportBugMethod · 0.95

Calls 2

mutateMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected