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

Function updateGitlabIssueBody

bridge/gitlab/export.go:497–509  ·  view source on GitHub ↗
(ctx context.Context, gc *gitlab.Client, repositoryID string, issueID int, body string)

Source from the content-addressed store, hash-verified

495}
496
497func updateGitlabIssueBody(ctx context.Context, gc *gitlab.Client, repositoryID string, issueID int, body string) error {
498 ctx, cancel := context.WithTimeout(ctx, defaultTimeout)
499 defer cancel()
500 _, _, err := gc.Issues.UpdateIssue(
501 repositoryID, issueID,
502 &gitlab.UpdateIssueOptions{
503 Description: &body,
504 },
505 gitlab.WithContext(ctx),
506 )
507
508 return err
509}
510
511func updateGitlabIssueTitle(ctx context.Context, gc *gitlab.Client, repositoryID string, issueID int, title string) error {
512 ctx, cancel := context.WithTimeout(ctx, defaultTimeout)

Callers 1

exportBugMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected