Skip to content

Commit

Permalink
Use correct base branch for raising autofix PRs
Browse files Browse the repository at this point in the history
[changelog:fixed]
  • Loading branch information
cdupuis committed Apr 29, 2019
1 parent 84725dc commit ff68974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api-helper/listener/executeAutofixes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export function executeAutofixes(registrations: AutofixRegistration[],
await cri.project.push();

if (!!editMode && isPullRequest(editMode)) {
const targetBranch = editMode.targetBranch || cri.project.branch || cri.project.id.branch;
const targetBranch = editMode.targetBranch || goalEvent.branch;
let body = `${editMode.body}
Applied autofixes:
Expand Down

0 comments on commit ff68974

Please sign in to comment.