Skip to content

Commit

Permalink
fix(azure): remove 'refs/heads/' from target branch (#4820)
Browse files Browse the repository at this point in the history
Azure DevOps returns the target branch in the form of `/ref/heads/master`, but Renovate expects just `master`

Fixes #4812
  • Loading branch information
JamieMagee authored and rarkins committed Nov 17, 2019
1 parent 0b5f989 commit 67d82c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/platform/azure/azure-helper.ts
Expand Up @@ -177,7 +177,7 @@ export function getRenovatePRFormat(azurePr: {
pr.displayNumber = `Pull Request #${azurePr.pullRequestId}`;
pr.number = azurePr.pullRequestId;
pr.body = azurePr.description;
pr.targetBranch = azurePr.targetRefName;
pr.targetBranch = getBranchNameWithoutRefsheadsPrefix(azurePr.targetRefName);

// status
// export declare enum PullRequestStatus {
Expand Down

0 comments on commit 67d82c5

Please sign in to comment.