Skip to content

Commit

Permalink
Merge pull request #145 from snyk/feat/gh-ghe-add-list-user-org-repos
Browse files Browse the repository at this point in the history
feat: add GH & GHE rules for listing org & user repos
  • Loading branch information
joshje authored Nov 5, 2018
2 parents eec9232 + 3d71d14 commit 2116f20
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
16 changes: 15 additions & 1 deletion client-templates/github-com/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,26 @@
},

{
"//": "list the user's repos",
"//": "list the logged in user's repos",
"method": "GET",
"path": "/user/repos",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

{
"//": "list a user's repos",
"method": "GET",
"path": "/users/:username/repos",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

{
"//": "list an orgs's repos",
"method": "GET",
"path": "/orgs/:username/repos",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

{
"//": "get a user's repo",
"method": "GET",
Expand Down
16 changes: 15 additions & 1 deletion client-templates/github-enterprise/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,26 @@
},

{
"//": "list the user's repos",
"//": "list the logged in user's repos",
"method": "GET",
"path": "/user/repos",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

{
"//": "list a user's repos",
"method": "GET",
"path": "/users/:username/repos",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

{
"//": "list an orgs's repos",
"method": "GET",
"path": "/orgs/:username/repos",
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

{
"//": "get a user's repo",
"method": "GET",
Expand Down

0 comments on commit 2116f20

Please sign in to comment.