Skip to content

Commit

Permalink
Merge pull request #113 from snyk/feat/github-commit-status-checks
Browse files Browse the repository at this point in the history
feat: allow access to branch status checks on github
  • Loading branch information
adrukh authored May 2, 2018
2 parents ce37a56 + 77cf2df commit b175435
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions client-templates/github/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,27 @@
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

{
"//": "used to get status checks on a branch",
"method": "GET",
"path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

{
"//": "used to create status checks on a branch",
"method": "POST",
"path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

{
"//": "used to delete status checks on a branch",
"method": "DELETE",
"path": "/repos/:user/:repo/branches/:branch/protection/required_status_checks/contexts",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

{
"//": "check if repo is public",
"method": "GET",
Expand Down

0 comments on commit b175435

Please sign in to comment.