-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1395 from gsmet/teams-sunset
Switch to the new Teams API
- Loading branch information
Showing
461 changed files
with
25,202 additions
and
20,115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,31 +20,36 @@ | |
"is_verified": false, | ||
"has_organization_projects": true, | ||
"has_repository_projects": true, | ||
"public_repos": 19, | ||
"public_repos": 49, | ||
"public_gists": 0, | ||
"followers": 0, | ||
"following": 0, | ||
"html_url": "https://github.com/hub4j-test-org", | ||
"created_at": "2014-05-10T19:39:11Z", | ||
"updated_at": "2020-06-04T05:56:10Z", | ||
"type": "Organization", | ||
"total_private_repos": 2, | ||
"owned_private_repos": 2, | ||
"total_private_repos": 3, | ||
"owned_private_repos": 3, | ||
"private_gists": 0, | ||
"disk_usage": 11979, | ||
"collaborators": 0, | ||
"billing_email": "[email protected]", | ||
"default_repository_permission": "none", | ||
"members_can_create_repositories": false, | ||
"two_factor_requirement_enabled": false, | ||
"members_allowed_repository_creation_type": "none", | ||
"members_can_create_public_repositories": false, | ||
"members_can_create_private_repositories": false, | ||
"members_can_create_internal_repositories": false, | ||
"members_can_create_pages": true, | ||
"members_can_fork_private_repositories": false, | ||
"members_can_create_public_pages": true, | ||
"members_can_create_private_pages": true, | ||
"plan": { | ||
"name": "free", | ||
"space": 976562499, | ||
"private_repos": 10000, | ||
"filled_seats": 26, | ||
"filled_seats": 35, | ||
"seats": 3 | ||
} | ||
} |
112 changes: 112 additions & 0 deletions
112
...estFetchingTeamFromGitHubInstanceThrowsException/__files/orgs_hub4j-test-org_teams-2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
[ | ||
{ | ||
"name": "child-team-for-dummy", | ||
"id": 3903497, | ||
"node_id": "MDQ6VGVhbTM5MDM0OTc=", | ||
"slug": "child-team-for-dummy", | ||
"description": "to test the fetching of child teams", | ||
"privacy": "closed", | ||
"url": "https://api.github.com/organizations/7544739/team/3903497", | ||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/child-team-for-dummy", | ||
"members_url": "https://api.github.com/organizations/7544739/team/3903497/members{/member}", | ||
"repositories_url": "https://api.github.com/organizations/7544739/team/3903497/repos", | ||
"permission": "pull", | ||
"parent": { | ||
"name": "dummy-team", | ||
"id": 3451996, | ||
"node_id": "MDQ6VGVhbTM0NTE5OTY=", | ||
"slug": "dummy-team", | ||
"description": "Updated by API TestModified", | ||
"privacy": "closed", | ||
"url": "https://api.github.com/organizations/7544739/team/3451996", | ||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/dummy-team", | ||
"members_url": "https://api.github.com/organizations/7544739/team/3451996/members{/member}", | ||
"repositories_url": "https://api.github.com/organizations/7544739/team/3451996/repos", | ||
"permission": "pull" | ||
} | ||
}, | ||
{ | ||
"name": "Contributors", | ||
"id": 4882699, | ||
"node_id": "MDQ6VGVhbTQ4ODI2OTk=", | ||
"slug": "contributors", | ||
"description": "", | ||
"privacy": "closed", | ||
"url": "https://api.github.com/organizations/7544739/team/4882699", | ||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/contributors", | ||
"members_url": "https://api.github.com/organizations/7544739/team/4882699/members{/member}", | ||
"repositories_url": "https://api.github.com/organizations/7544739/team/4882699/repos", | ||
"permission": "pull", | ||
"parent": null | ||
}, | ||
{ | ||
"name": "Core Developers", | ||
"id": 820406, | ||
"node_id": "MDQ6VGVhbTgyMDQwNg==", | ||
"slug": "core-developers", | ||
"description": "A random team", | ||
"privacy": "secret", | ||
"url": "https://api.github.com/organizations/7544739/team/820406", | ||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/core-developers", | ||
"members_url": "https://api.github.com/organizations/7544739/team/820406/members{/member}", | ||
"repositories_url": "https://api.github.com/organizations/7544739/team/820406/repos", | ||
"permission": "pull", | ||
"parent": null | ||
}, | ||
{ | ||
"name": "dummy-team", | ||
"id": 3451996, | ||
"node_id": "MDQ6VGVhbTM0NTE5OTY=", | ||
"slug": "dummy-team", | ||
"description": "Updated by API TestModified", | ||
"privacy": "closed", | ||
"url": "https://api.github.com/organizations/7544739/team/3451996", | ||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/dummy-team", | ||
"members_url": "https://api.github.com/organizations/7544739/team/3451996/members{/member}", | ||
"repositories_url": "https://api.github.com/organizations/7544739/team/3451996/repos", | ||
"permission": "pull", | ||
"parent": null | ||
}, | ||
{ | ||
"name": "Owners-team", | ||
"id": 820404, | ||
"node_id": "MDQ6VGVhbTgyMDQwNA==", | ||
"slug": "owners-team", | ||
"description": null, | ||
"privacy": "secret", | ||
"url": "https://api.github.com/organizations/7544739/team/820404", | ||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/owners-team", | ||
"members_url": "https://api.github.com/organizations/7544739/team/820404/members{/member}", | ||
"repositories_url": "https://api.github.com/organizations/7544739/team/820404/repos", | ||
"permission": "pull", | ||
"parent": null | ||
}, | ||
{ | ||
"name": "simple-team", | ||
"id": 3947450, | ||
"node_id": "MDQ6VGVhbTM5NDc0NTA=", | ||
"slug": "simple-team", | ||
"description": "A simple team with no children", | ||
"privacy": "secret", | ||
"url": "https://api.github.com/organizations/7544739/team/3947450", | ||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/simple-team", | ||
"members_url": "https://api.github.com/organizations/7544739/team/3947450/members{/member}", | ||
"repositories_url": "https://api.github.com/organizations/7544739/team/3947450/repos", | ||
"permission": "pull", | ||
"parent": null | ||
}, | ||
{ | ||
"name": "tricky-team", | ||
"id": 3454508, | ||
"node_id": "MDQ6VGVhbTM0NTQ1MDg=", | ||
"slug": "tricky-team", | ||
"description": "", | ||
"privacy": "secret", | ||
"url": "https://api.github.com/organizations/7544739/team/3454508", | ||
"html_url": "https://github.com/orgs/hub4j-test-org/teams/tricky-team", | ||
"members_url": "https://api.github.com/organizations/7544739/team/3454508/members{/member}", | ||
"repositories_url": "https://api.github.com/organizations/7544739/team/3454508/repos", | ||
"permission": "pull", | ||
"parent": null | ||
} | ||
] |
47 changes: 47 additions & 0 deletions
47
...ock/testFetchingTeamFromGitHubInstanceThrowsException/mappings/orgs_hub4j-test-org-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"id": "3c0fb9cd-6289-4f5c-baea-1bd6980a9d15", | ||
"name": "orgs_hub4j-test-org", | ||
"request": { | ||
"url": "/orgs/hub4j-test-org", | ||
"method": "GET", | ||
"headers": { | ||
"Accept": { | ||
"equalTo": "application/vnd.github.v3+json" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "orgs_hub4j-test-org-1.json", | ||
"headers": { | ||
"Server": "GitHub.com", | ||
"Date": "Fri, 04 Mar 2022 19:26:44 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Cache-Control": "private, max-age=60, s-maxage=60", | ||
"Vary": [ | ||
"Accept, Authorization, Cookie, X-GitHub-OTP", | ||
"Accept-Encoding, Accept, X-Requested-With" | ||
], | ||
"ETag": "W/\"861b38147d37bd59e507771e76ec048def20dd6e5ac5b75aceb01c8b9f0ef4f5\"", | ||
"Last-Modified": "Thu, 04 Jun 2020 05:56:10 GMT", | ||
"X-OAuth-Scopes": "admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, gist, notifications, repo, user, workflow, write:discussion", | ||
"X-Accepted-OAuth-Scopes": "admin:org, read:org, repo, user, write:org", | ||
"X-GitHub-Media-Type": "github.v3; format=json", | ||
"X-RateLimit-Limit": "5000", | ||
"X-RateLimit-Remaining": "4998", | ||
"X-RateLimit-Reset": "1646424320", | ||
"X-RateLimit-Used": "2", | ||
"X-RateLimit-Resource": "core", | ||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", | ||
"X-Frame-Options": "deny", | ||
"X-Content-Type-Options": "nosniff", | ||
"X-XSS-Protection": "0", | ||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", | ||
"Content-Security-Policy": "default-src 'none'", | ||
"X-GitHub-Request-Id": "B678:265F:2A24E9B:2AE23A8:622267F3" | ||
} | ||
}, | ||
"uuid": "3c0fb9cd-6289-4f5c-baea-1bd6980a9d15", | ||
"persistent": true, | ||
"insertionIndex": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.