-
Notifications
You must be signed in to change notification settings - Fork 741
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 #895 from jeetchoudhary/protection
GHBranch getProtection method to return correct number of reviewers #890
- Loading branch information
Showing
24 changed files
with
338 additions
and
159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"id": 222596043, | ||
"node_id": "MDEwOlJlcG9zaXRvcnkyMjI1OTYwNDM=", | ||
"id": 280488362, | ||
"node_id": "MDEwOlJlcG9zaXRvcnkyODA0ODgzNjI=", | ||
"name": "temp-testEnableBranchProtections", | ||
"full_name": "hub4j-test-org/temp-testEnableBranchProtections", | ||
"private": false, | ||
|
@@ -64,9 +64,9 @@ | |
"labels_url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/labels{/name}", | ||
"releases_url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/releases{/id}", | ||
"deployments_url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/deployments", | ||
"created_at": "2019-11-19T03:01:26Z", | ||
"updated_at": "2019-11-19T03:01:31Z", | ||
"pushed_at": "2019-11-19T03:01:27Z", | ||
"created_at": "2020-07-17T17:40:22Z", | ||
"updated_at": "2020-07-17T17:40:27Z", | ||
"pushed_at": "2020-07-17T17:40:24Z", | ||
"git_url": "git://github.com/hub4j-test-org/temp-testEnableBranchProtections.git", | ||
"ssh_url": "[email protected]:hub4j-test-org/temp-testEnableBranchProtections.git", | ||
"clone_url": "https://github.com/hub4j-test-org/temp-testEnableBranchProtections.git", | ||
|
@@ -96,9 +96,11 @@ | |
"push": true, | ||
"pull": true | ||
}, | ||
"temp_clone_token": "", | ||
"allow_squash_merge": true, | ||
"allow_merge_commit": true, | ||
"allow_rebase_merge": true, | ||
"delete_branch_on_merge": false, | ||
"organization": { | ||
"login": "hub4j-test-org", | ||
"id": 7544739, | ||
|
@@ -120,5 +122,5 @@ | |
"site_admin": false | ||
}, | ||
"network_count": 0, | ||
"subscribers_count": 4 | ||
"subscribers_count": 8 | ||
} |
20 changes: 10 additions & 10 deletions
20
...s/repos_hub4j-test-org_temp-040c1d69.json → ...ebranchprotections_branches_master-3.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 |
---|---|---|
@@ -1,36 +1,36 @@ | ||
{ | ||
"name": "master", | ||
"commit": { | ||
"sha": "298ffff9c7928b06e9b74d01ae8a34ab98e9b4c2", | ||
"node_id": "MDY6Q29tbWl0MjIyNTk2MDQzOjI5OGZmZmY5Yzc5MjhiMDZlOWI3NGQwMWFlOGEzNGFiOThlOWI0YzI=", | ||
"sha": "7b85665b2b0b99ac61e7c23a35b0479daa9014d7", | ||
"node_id": "MDY6Q29tbWl0MjgwNDg4MzYyOjdiODU2NjViMmIwYjk5YWM2MWU3YzIzYTM1YjA0NzlkYWE5MDE0ZDc=", | ||
"commit": { | ||
"author": { | ||
"name": "Liam Newman", | ||
"email": "[email protected]", | ||
"date": "2019-11-19T03:01:27Z" | ||
"date": "2020-07-17T17:40:24Z" | ||
}, | ||
"committer": { | ||
"name": "GitHub", | ||
"email": "[email protected]", | ||
"date": "2019-11-19T03:01:27Z" | ||
"date": "2020-07-17T17:40:24Z" | ||
}, | ||
"message": "Initial commit", | ||
"tree": { | ||
"sha": "3858cfba073ecd82947ddca0dc3613584db75e4c", | ||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/git/trees/3858cfba073ecd82947ddca0dc3613584db75e4c" | ||
}, | ||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/git/commits/298ffff9c7928b06e9b74d01ae8a34ab98e9b4c2", | ||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/git/commits/7b85665b2b0b99ac61e7c23a35b0479daa9014d7", | ||
"comment_count": 0, | ||
"verification": { | ||
"verified": true, | ||
"reason": "valid", | ||
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJd01sHCRBK7hj4Ov3rIwAAdHIIABgp0lFAcHc2m3RCcuCUqfMl\nzfgjjYNYsqyWgwWeB0c44naL8nqhF/a80KlY4+1T2gVR8GOSZNyC8ewDH/6V+X3q\n5MzjTNJBk2ks5oA4bz2fgdsE7fm8kKDZQRqL9+BN4JF9MNps4M2+nR5Rg4sBm2+A\nSZHcdfzZ6ll0ptcTGl7403Xe9irj/V6iymycUapbK4+RHBotrN6kbBGZtjILempU\nMbYrIuqteQF3B2p9FSXFCJ8SpAL/Cq/GkpGvEbYIPdQ2IFQ6ImiRSf6eNTvSXxtG\nLJygBJsaRCH81FEhBfUnbP+stB9x4dloj/yhPLd6BXv1VCuzT2h9roYtaemjb7c=\n=ycC3\n-----END PGP SIGNATURE-----\n", | ||
"payload": "tree 3858cfba073ecd82947ddca0dc3613584db75e4c\nauthor Liam Newman <[email protected]> 1574132487 -0800\ncommitter GitHub <[email protected]> 1574132487 -0800\n\nInitial commit" | ||
"signature": "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJfEeKICRBK7hj4Ov3rIwAAdHIIAIhWRCiGPP64NglqLTELU0qx\nMtPpqwEx7yPwksfvU2XD6WY3NKCHqAlBgIrn6VSsmLx8IF3r0i+hLO4RXOyq+leJ\njmbq697BZNG8OmkB8asAV5r/wow9zL0dvXglpgPdozxPFqTS/aTJWvbwLHZ3UoA7\nCnHnHWVqQMiwBLD/5Jn2pjJ5Oa3C0FfdaocjfZsHZZD7YmfX4rnI8rZW0VpvfzKD\nSs9s5VpsxW/EIQPMAnduntTngdO3Op6dbqbF6PoweS3jDKpACbXI1OZV40LrmvQ6\nBQCSqc0Hy8j04wAswLSI1RdU87ST0fkvB3s61XFB0BO/bxiSSI0U1owMKFkJLIU=\n=+M0n\n-----END PGP SIGNATURE-----\n", | ||
"payload": "tree 3858cfba073ecd82947ddca0dc3613584db75e4c\nauthor Liam Newman <[email protected]> 1595007624 -0700\ncommitter GitHub <[email protected]> 1595007624 -0700\n\nInitial commit" | ||
} | ||
}, | ||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/commits/298ffff9c7928b06e9b74d01ae8a34ab98e9b4c2", | ||
"html_url": "https://github.com/hub4j-test-org/temp-testEnableBranchProtections/commit/298ffff9c7928b06e9b74d01ae8a34ab98e9b4c2", | ||
"comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/commits/298ffff9c7928b06e9b74d01ae8a34ab98e9b4c2/comments", | ||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/commits/7b85665b2b0b99ac61e7c23a35b0479daa9014d7", | ||
"html_url": "https://github.com/hub4j-test-org/temp-testEnableBranchProtections/commit/7b85665b2b0b99ac61e7c23a35b0479daa9014d7", | ||
"comments_url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/commits/7b85665b2b0b99ac61e7c23a35b0479daa9014d7/comments", | ||
"author": { | ||
"login": "bitwiseman", | ||
"id": 1958953, | ||
|
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
30 changes: 30 additions & 0 deletions
30
...s/repos_hub4j-test-org_temp-testenablebranchprotections_branches_master_protection-5.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,30 @@ | ||
{ | ||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/master/protection", | ||
"required_status_checks": { | ||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/master/protection/required_status_checks", | ||
"strict": true, | ||
"contexts": [ | ||
"test-status-check" | ||
], | ||
"contexts_url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/master/protection/required_status_checks/contexts" | ||
}, | ||
"required_pull_request_reviews": { | ||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/master/protection/required_pull_request_reviews", | ||
"dismiss_stale_reviews": true, | ||
"require_code_owner_reviews": true, | ||
"required_approving_review_count": 2 | ||
}, | ||
"enforce_admins": { | ||
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/master/protection/enforce_admins", | ||
"enabled": true | ||
}, | ||
"required_linear_history": { | ||
"enabled": false | ||
}, | ||
"allow_force_pushes": { | ||
"enabled": false | ||
}, | ||
"allow_deletions": { | ||
"enabled": false | ||
} | ||
} |
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 |
---|---|---|
|
@@ -23,17 +23,18 @@ | |
"location": "Seattle, WA, USA", | ||
"email": "[email protected]", | ||
"hireable": null, | ||
"bio": "https://twitter.com/bitwiseman", | ||
"public_repos": 176, | ||
"bio": null, | ||
"twitter_username": "bitwiseman", | ||
"public_repos": 196, | ||
"public_gists": 7, | ||
"followers": 140, | ||
"followers": 165, | ||
"following": 9, | ||
"created_at": "2012-07-11T20:38:33Z", | ||
"updated_at": "2019-09-24T19:32:29Z", | ||
"private_gists": 7, | ||
"total_private_repos": 9, | ||
"updated_at": "2020-07-15T22:26:44Z", | ||
"private_gists": 19, | ||
"total_private_repos": 14, | ||
"owned_private_repos": 0, | ||
"disk_usage": 33697, | ||
"disk_usage": 33700, | ||
"collaborators": 0, | ||
"two_factor_authentication": true, | ||
"plan": { | ||
|
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
Oops, something went wrong.