Skip to content

Commit

Permalink
Updated dist/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Annihilatopia committed Oct 12, 2020
1 parent fd06e95 commit f5d265c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7483,6 +7483,7 @@ async function run() {

const inputs = {
token: core.getInput('repo-token', {required: true}),
useBaseBranch: (core.getInput('use-base-branch').toLowerCase() === 'true'),
branchRegex: core.getInput('branch-regex', {required: true}),
lowercaseBranch: (core.getInput('lowercase-branch').toLowerCase() === 'true'),
titleTemplate: core.getInput('title-template', {required: true}),
Expand All @@ -7495,7 +7496,7 @@ async function run() {
uppercaseBody: (core.getInput('uppercase-body').toLowerCase() === 'true'),
}

const branchName = github.context.payload.pull_request.head.ref;
const branchName = inputs.useBaseBranch ? github.context.payload.pull_request.base.ref : github.context.payload.pull_request.head.ref;
const branch = inputs.lowercaseBranch ? branchName.toLowerCase() : branchName;
core.debug(`branch: ${branch}`);

Expand Down Expand Up @@ -11310,4 +11311,4 @@ function onceStrict (fn) {

/***/ })

/******/ });
/******/ });

0 comments on commit f5d265c

Please sign in to comment.