Lock an issue's conversation. GitHub API docs: https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#lock-an-issue meta:operation PUT /repos/{owner}/{repo}/issues/{issue_number}/lock
(ctx context.Context, owner, repo string, number int, opts *LockIssueOptions)
| 516 | // |
| 517 | //meta:operation PUT /repos/{owner}/{repo}/issues/{issue_number}/lock |
| 518 | func (s *IssuesService) Lock(ctx context.Context, owner, repo string, number int, opts *LockIssueOptions) (*Response, error) { |
| 519 | u := fmt.Sprintf("repos/%v/%v/issues/%v/lock", owner, repo, number) |
| 520 | req, err := s.client.NewRequest(ctx, "PUT", u, opts) |
| 521 | if err != nil { |
| 522 | return nil, err |
| 523 | } |
| 524 | |
| 525 | return s.client.Do(req, nil) |
| 526 | } |
| 527 | |
| 528 | // Unlock an issue's conversation. |
| 529 | // |