Skip to content

Commit 26cf000

Browse files
authored
Merge pull request snyk#140 from snyk/feat/broker-support-get-repo
feat: add support for getting a single repo
2 parents 5364f46 + 0f22449 commit 26cf000

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

client-templates/bitbucket-server/accept.json.sample

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@
3131
"password": "${BITBUCKET_PASSWORD}"
3232
}
3333
},
34+
{
35+
"//": "fetch a given repo",
36+
"method": "GET",
37+
"path": "/projects/:project/repos/:repo",
38+
"origin": "https://${BITBUCKET_API}",
39+
"auth": {
40+
"scheme": "basic",
41+
"username": "${BITBUCKET_USERNAME}",
42+
"password": "${BITBUCKET_PASSWORD}"
43+
}
44+
},
3445
{
3546
"//": "used to determine the full dependency tree",
3647
"method": "GET",

client-templates/github-com/accept.json.sample

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@
130130
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
131131
},
132132

133+
{
134+
"//": "get a user's repo",
135+
"method": "GET",
136+
"path": "/repos/:user/:repo",
137+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
138+
},
139+
133140
{
134141
"//": "rate limit check",
135142
"method": "GET",

client-templates/github-enterprise/accept.json.sample

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@
130130
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
131131
},
132132

133+
{
134+
"//": "get a user's repo",
135+
"method": "GET",
136+
"path": "/repos/:user/:repo",
137+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
138+
},
139+
133140
{
134141
"//": "rate limit check",
135142
"method": "GET",

client-templates/gitlab/accept.json.sample

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@
3333
"path": "/api/v3/projects/visible",
3434
"origin": "https://${GITLAB}"
3535
},
36+
{
37+
"//": "get a user's project",
38+
"method": "GET",
39+
"path": "/api/v3/projects/:project",
40+
"origin": "https://${GITLAB}"
41+
},
42+
{
43+
"//": "get a user's project",
44+
"method": "GET",
45+
"path": "/api/v4/projects/:project",
46+
"origin": "https://${GITLAB}"
47+
},
3648
{
3749
"//": "used to determine the full dependency tree",
3850
"method": "GET",

0 commit comments

Comments
 (0)