Skip to content

Commit 482a91e

Browse files
authored
Merge pull request #1002 from micedre/fix-issue-1001
Fix #1001: get only project user is member of (and return max of results)
2 parents 3817d58 + d7987de commit 482a91e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ function gitlabActionProjects (req, res, note) {
591591
ret.accesstoken = user.accessToken
592592
ret.profileid = user.profileid
593593
request(
594-
config.gitlab.baseURL + '/api/' + config.gitlab.version + '/projects?access_token=' + user.accessToken,
594+
config.gitlab.baseURL + '/api/' + config.gitlab.version + '/projects?membership=yes&per_page=100&access_token=' + user.accessToken,
595595
function (error, httpResponse, body) {
596596
if (!error && httpResponse.statusCode === 200) {
597597
ret.projects = JSON.parse(body)

0 commit comments

Comments
 (0)