Skip to content

Commit

Permalink
Fix Github action invalid title (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakputhraya authored Nov 6, 2019
1 parent 1e4e2c9 commit 61d8901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function run() {
return;
}

const title = github.context.payload.title;
const title = github.context.payload.pull_request.title;
core.info(`Pull Request title: "${title}"`);
// Check if title pass regex
const regex = RegExp(core.getInput('regex'));
Expand Down

0 comments on commit 61d8901

Please sign in to comment.