Skip to content

Commit a262c32

Browse files
authored
Merge pull request snyk#142 from snyk/feat/broker-support-get-list
feat: adding support for paginated list
2 parents 26cf000 + a6da0fb commit a262c32

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@
2020
"password": "${BITBUCKET_PASSWORD}"
2121
}
2222
},
23+
{
24+
"//": "list the project's repos",
25+
"method": "GET",
26+
"path": "/projects/:projectKey/repos",
27+
"origin": "https://${BITBUCKET_API}",
28+
"auth": {
29+
"scheme": "basic",
30+
"username": "${BITBUCKET_USERNAME}",
31+
"password": "${BITBUCKET_PASSWORD}"
32+
}
33+
},
2334
{
2435
"//": "list the user's repos",
2536
"method": "GET",

client-templates/gitlab/accept.json.sample

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,18 @@
177177
"method": "POST",
178178
"path": "/api/v4/projects/:project/merge_requests",
179179
"origin": "https://${GITLAB}"
180+
},
181+
{
182+
"//": "list the user's groups",
183+
"method": "GET",
184+
"path": "/api/v4/groups",
185+
"origin": "https://${GITLAB}"
186+
},
187+
{
188+
"//": "list of projects in a group",
189+
"method": "GET",
190+
"path": "/api/v4/groups/:id/projects",
191+
"origin": "https://${GITLAB}"
180192
}
181193
]
182194
}

0 commit comments

Comments
 (0)