Skip to content

Commit

Permalink
Merge pull request #140 from snyk/feat/broker-support-get-repo
Browse files Browse the repository at this point in the history
feat: add support for getting a single repo
  • Loading branch information
joshje authored Sep 28, 2018
2 parents 5364f46 + 0f22449 commit 26cf000
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
11 changes: 11 additions & 0 deletions client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "fetch a given repo",
"method": "GET",
"path": "/projects/:project/repos/:repo",
"origin": "https://${BITBUCKET_API}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
Expand Down
7 changes: 7 additions & 0 deletions client-templates/github-com/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

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

{
"//": "rate limit check",
"method": "GET",
Expand Down
7 changes: 7 additions & 0 deletions client-templates/github-enterprise/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
},

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

{
"//": "rate limit check",
"method": "GET",
Expand Down
12 changes: 12 additions & 0 deletions client-templates/gitlab/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@
"path": "/api/v3/projects/visible",
"origin": "https://${GITLAB}"
},
{
"//": "get a user's project",
"method": "GET",
"path": "/api/v3/projects/:project",
"origin": "https://${GITLAB}"
},
{
"//": "get a user's project",
"method": "GET",
"path": "/api/v4/projects/:project",
"origin": "https://${GITLAB}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
Expand Down

0 comments on commit 26cf000

Please sign in to comment.