Skip to content
Snippets Groups Projects
Commit ed8a20b5 authored by Troy Coutu's avatar Troy Coutu Committed by Rhys Arkins
Browse files

Add gitlab api v4 support to getPr (#295)

parent eaaaa232
No related merge requests found
......@@ -134,7 +134,7 @@ async function getBranchPr(branchName) {
if (!pr) {
return null;
}
return getPr(pr.id);
return getPr(config.apiVersion === 'v3' ? pr.id : pr.iid);
}
// Returns the combined status for a branch.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment