Skip to content

Commit

Permalink
Merge pull request #1002 from micedre/fix-issue-1001
Browse files Browse the repository at this point in the history
Fix #1001: get only project user is member of (and return max of results)
  • Loading branch information
SISheogorath authored Oct 9, 2018
2 parents 3817d58 + d7987de commit 482a91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ function gitlabActionProjects (req, res, note) {
ret.accesstoken = user.accessToken
ret.profileid = user.profileid
request(
config.gitlab.baseURL + '/api/' + config.gitlab.version + '/projects?access_token=' + user.accessToken,
config.gitlab.baseURL + '/api/' + config.gitlab.version + '/projects?membership=yes&per_page=100&access_token=' + user.accessToken,
function (error, httpResponse, body) {
if (!error && httpResponse.statusCode === 200) {
ret.projects = JSON.parse(body)
Expand Down

0 comments on commit 482a91e

Please sign in to comment.