Raise pr-tree response limit to max

This commit is contained in:
Will Simons 2017-08-29 14:51:07 -07:00 committed by Buu Nguyen
parent f9bb5b72ee
commit 637d07c71e
3 changed files with 11 additions and 2 deletions

View File

@ -180,7 +180,7 @@ class GitHub extends PjaxAdapter {
*/
_getPatch(opts, cb) {
const {pullNumber} = opts.repo
this._get(`/pulls/${pullNumber}/files`, opts, (err, res) => {
this._get(`/pulls/${pullNumber}/files?per_page=300`, opts, (err, res) => {
if (err) cb(err)
else {
const diffMap = {}

View File

@ -169,6 +169,11 @@
height: 60px;
}
}
.octotree_opts_disclaimer {
color: gray;
display: block;
font-size: 12px;
}
}
}

View File

@ -80,7 +80,11 @@
</div>
<div class="octotree_github_only">
<label><input type="checkbox" data-store="PR"> Show only changes in pull requests</label>
<label>
<input type="checkbox" data-store="PR">
Show only changes in pull requests
<span class="octotree_opts_disclaimer">Note: displays a maximum of 300 files</span>
</label>
</div>
<div>