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

Method Unlock

github/issues.go:533–541  ·  view source on GitHub ↗

Unlock an issue's conversation. GitHub API docs: https://docs.github.com/rest/issues/issues?apiVersion=2022-11-28#unlock-an-issue meta:operation DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock

(ctx context.Context, owner, repo string, number int)

Source from the content-addressed store, hash-verified

531//
532//meta:operation DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock
533func (s *IssuesService) Unlock(ctx context.Context, owner, repo string, number int) (*Response, error) {
534 u := fmt.Sprintf("repos/%v/%v/issues/%v/lock", owner, repo, number)
535 req, err := s.client.NewRequest(ctx, "DELETE", u, nil)
536 if err != nil {
537 return nil, err
538 }
539
540 return s.client.Do(req, nil)
541}

Callers 7

resolveMethod · 0.80
TestIssuesService_UnlockFunction · 0.80
CloneMethod · 0.80
bareDoMethod · 0.80
GetMethod · 0.80

Calls 2

NewRequestMethod · 0.80
DoMethod · 0.45

Tested by 1

TestIssuesService_UnlockFunction · 0.64