MCPcopy Index your code
hub / github.com/google/go-github / Lock

Method Lock

github/issues.go:518–526  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

516//
517//meta:operation PUT /repos/{owner}/{repo}/issues/{issue_number}/lock
518func (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//

Callers 8

resolveMethod · 0.80
TestIssuesService_LockFunction · 0.80
CloneMethod · 0.80
bareDoMethod · 0.80
GetMethod · 0.80

Calls 2

NewRequestMethod · 0.80
DoMethod · 0.45

Tested by 2

TestIssuesService_LockFunction · 0.64