Skip to content

Commit

Permalink
dont include additioanl markdown and use 'End Commit Message' as the …
Browse files Browse the repository at this point in the history
…terminator
  • Loading branch information
iliapolo committed Mar 8, 2020
1 parent b950350 commit 2558942
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ BREAKING CHANGE: Description of what broke and how to achieve this behavior now<
\* **module-name:** Yet another breaking change
-->

## <!--DO NOT REMOVE (used as the commit message terminator)-->
<!--IMPORTANT: This section cannot contain any additional markdown headers (#)-->

## End Commit Message

----

Expand Down
2 changes: 1 addition & 1 deletion tools/prlint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function commitMessage(number) {

// this is the commit message mergify will use.
// see https://doc.mergify.io/actions.html#commit-message-and-squash-method.
const commitMessageSection = issue.body.match(/## Commit Message([\s|\S]*)##/);
const commitMessageSection = issue.body.match(/## Commit Message([\s|\S]*)## End Commit Message/);

if (!commitMessageSection || commitMessageSection.length !== 2) {
throw new LinterError("Your PR description doesn't specify the commit"
Expand Down

0 comments on commit 2558942

Please sign in to comment.