diff --git a/index.js b/index.js index 5008024..6f5aaa8 100644 --- a/index.js +++ b/index.js @@ -8,17 +8,23 @@ async function check() { const prDescription = core.getInput("pr_description"); if (helpers.checkPrBranch(prBranch) === false) { - core.setFailed("PR branch has wrong name"); + core.setFailed( + `PR branch has wrong name\n - branch name: "${prBranch}"` + ); return; } if (helpers.checkPrTitle(prTitle) === false) { - core.setFailed("PR title doesn't start with issue number"); + core.setFailed( + `PR title doesn't start with issue number\n - PR title: "${prTitle}"` + ); return; } if (helpers.checkPrDescription(prDescription) == false) { - core.setFailed("PR description doesn't contain 'fixes #issue' phrase"); + core.setFailed( + `PR description doesn't contain 'fixes #issue' phrase\n - PR description: "${prDescription}"` + ); return; } @@ -30,7 +36,7 @@ async function check() { ) === false ) { core.setFailed( - "PR title and description contain different issue numbers" + `Branch name, PR title and description contain different issue numbers\n - branch name: "${prBranch}"\n - PR title: "${prTitle}"\n- PR description: "${prDescription}"` ); return; }