summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-09-21 15:30:12 +0200
committerRémy Coutable <remy@rymai.me>2017-09-26 19:17:00 +0200
commite484a06472890424c9f7174a3e80d5a5e43eae57 (patch)
treecac82e5dc0caf5a51af0434abb56e1fd7348289f /lib/api
parent60053c12014db906afdc481638de9f746e663a40 (diff)
downloadgitlab-ce-e484a06472890424c9f7174a3e80d5a5e43eae57.tar.gz
Retrieve PR comments only when we know there are any
The Pull Request resource doesn't include the `comments` field, while the Issue resource does. And since we're looping through all issues anyway, we can freely check if the issue is a PR and has comments and in this case only fetch comments for it. That means if you have 1000 PRs but only 200 with comments, you will do 200 API requests instead of 1000. :notbad: Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api')
0 files changed, 0 insertions, 0 deletions