| 495 | } |
| 496 | |
| 497 | func 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 | |
| 511 | func updateGitlabIssueTitle(ctx context.Context, gc *gitlab.Client, repositoryID string, issueID int, title string) error { |
| 512 | ctx, cancel := context.WithTimeout(ctx, defaultTimeout) |