File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ const (
3939 GetReposSubscriptionByOwnerByRepo = "GET /repos/{owner}/{repo}/subscription"
4040 PutReposSubscriptionByOwnerByRepo = "PUT /repos/{owner}/{repo}/subscription"
4141 DeleteReposSubscriptionByOwnerByRepo = "DELETE /repos/{owner}/{repo}/subscription"
42+ ListCollaborators = "GET /repos/{owner}/{repo}/collaborators"
4243
4344 // Git endpoints
4445 GetReposGitTreesByOwnerByRepoByTree = "GET /repos/{owner}/{repo}/git/trees/{tree}"
Original file line number Diff line number Diff line change @@ -4416,7 +4416,7 @@ func Test_ListRepositoryCollaborators(t *testing.T) {
44164416 },
44174417 mockResponses : []MockBackendOption {
44184418 WithRequestMatch (
4419- GetReposCollaboratorsByOwnerByRepo ,
4419+ ListCollaborators ,
44204420 mockCollaborators ,
44214421 ),
44224422 },
@@ -4430,7 +4430,7 @@ func Test_ListRepositoryCollaborators(t *testing.T) {
44304430 },
44314431 mockResponses : []MockBackendOption {
44324432 WithRequestMatch (
4433- GetReposCollaboratorsByOwnerByRepo ,
4433+ ListCollaborators ,
44344434 mockCollaborators ,
44354435 ),
44364436 },
@@ -4459,7 +4459,7 @@ func Test_ListRepositoryCollaborators(t *testing.T) {
44594459 },
44604460 mockResponses : []MockBackendOption {
44614461 WithRequestMatch (
4462- GetReposCollaboratorsByOwnerByRepo ,
4462+ ListCollaborators ,
44634463 []* github.User {},
44644464 ),
44654465 },
You can’t perform that action at this time.
0 commit comments