From 72ec5f65547ab6588bbe24fd4fab9f6f86e5ec8f Mon Sep 17 00:00:00 2001 From: Matt Thompson Date: Fri, 21 Jun 2024 13:41:46 -0400 Subject: [PATCH] Fix minor misspelling As I was inspecting how I might be able to add more to the text that gets created in the issue (since most people don't know regex), I saw a minor misspelling. So, figured I'd make a PR. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 79a9416..dfc5c30 100644 --- a/index.js +++ b/index.js @@ -29,7 +29,7 @@ const delete_issue = core.getInput('delete') || '' }) } if (eventPayload.pull_request && re.test(eventPayload.pull_request.head.ref) === false) { - core.setFailed(`The head branch of pull request ${eventPayload.pull_request.number} has an incorrent name. Please update the branch name to the approved regex naming convention format. Regex: ${regex} Flags: ${flags}`) + core.setFailed(`The head branch of pull request ${eventPayload.pull_request.number} has an incorrect name. Please update the branch name to the approved regex naming convention format. Regex: ${regex} Flags: ${flags}`) } if (event_name === 'delete' && ref_type === 'branch' && re.test(ref) === false) { try {