Skip to content

build(deps): bump @commitlint/config-conventional from 18.5.0 to 18.6.0 #557

build(deps): bump @commitlint/config-conventional from 18.5.0 to 18.6.0

build(deps): bump @commitlint/config-conventional from 18.5.0 to 18.6.0 #557

GitHub Actions / Unit Tests Run failed Jan 25, 2024 in 0s

Unit Tests Run ❌

Tests failed

❌ unit-tests-result.json

106 tests were completed in 255ms with 98 passed, 8 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tests/auto-me-bot.test.js 14✅ 14ms
tests/handlers/pr-auto-approve.test.js 10✅ 5ms
tests/handlers/pr-conventional-commits.test.js 7✅ 5❌ 114ms
tests/handlers/pr-conventional-title.test.js 5✅ 3❌ 33ms
tests/handlers/pr-lifecycle-labels.test.js 32✅ 15ms
tests/handlers/pr-signed-commits.test.js 22✅ 15ms
tests/handlers/pr-tasks-list.test.js 8✅ 8ms

✅ tests/auto-me-bot.test.js

Testing the auto-me-bot export
  ✅ When invoking the application, expect a registration of the events
Testing the auto-me-bot export Test various pull request related configurations
  ✅ When all PR operations are checked, execute all PR related handlers
  ✅ When event payload contains an unsupported event type, do not execute any handlers
  ✅ When event payload event action type is not supported, do not execute any handlers
  ✅ When no operations are checked and config is {"pr":{"unknownHandler":{}}}, do not execute any handlers
  ✅ When no operations are checked and config is {"pr":{}}, do not execute any handlers
  ✅ When no operations are checked and config is {}, do not execute any handlers
  ✅ When no operations are checked and config is null, do not execute any handlers
  ✅ When the autoApprove operation is checked, execute the related handler
  ✅ When the conventionalCommits operation is checked, execute the related handler
  ✅ When the conventionalTitle operation is checked, execute the related handler
  ✅ When the lifecycleLabels operation is checked, execute the related handler
  ✅ When the signedCommits operation is checked, execute the related handler
  ✅ When the tasksList operation is checked, execute the related handler

✅ tests/handlers/pr-auto-approve.test.js

Testing the pr-auto-approve handler Test handler matching
  ✅ Test an unknown event type, expect a false match
  ✅ Test pull_request event type with an unknown action type, expect a false match
  ✅ Test pull_request event type with opened action type, expect a match
  ✅ Test pull_request event type with synchronize action type, expect a match
Testing the pr-auto-approve handler Test handler running
  ✅ Test a correct scenario with a non 200 response from the API
  ✅ Test a correct scenario with a rejected response from the API
  ✅ Test with a bot sender and allBots set to true in the configuration, expect approve event
  ✅ Test with a non listed user in the configuration, expect no event
  ✅ Test with a user sender listed in the configuration, expect approve event
  ✅ Test with no configuration, expect no event

❌ tests/handlers/pr-conventional-commits.test.js

Testing the pr-conventional-commits handler Test handler matching
  ✅ Test an unknown event type, expect a false match
  ✅ Test pull_request event type with an unknown action type, expect a false match
  ✅ Test pull_request event type with edited action type, expect a match
  ✅ Test pull_request event type with opened action type, expect a match
  ✅ Test pull_request event type with synchronize action type, expect a match
Testing the pr-conventional-commits handler Test handler running
  ✅ Test with listCommits API endpoint response not successful, expect a report indicating a possible API error
  ✅ Test with listCommits API response endpoint promise rejection, expect a report indicating a possible API error
  ❌ Test with one error commit message, expect one error report
	Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
  ❌ Test with one good commit message, expect a successful result
	Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
  ❌ Test with one non-standard error based a custom configuration, expect a report error
	Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
  ❌ Test with one warning commit message, expect one warning report
	Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
  ❌ Test with one warning, one error, and one good commit message, expect a report for both the warning and the error
	Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length

❌ tests/handlers/pr-conventional-title.test.js

Testing the pr-conventional-title handler Test handler matching
  ✅ Test an unknown event type, expect a false match
  ✅ Test pull_request event type with an unknown action type, expect a false match
  ✅ Test pull_request event type with edited action type, expect a match
  ✅ Test pull_request event type with opened action type, expect a match
  ✅ Test pull_request event type with synchronize action type, expect a match
Testing the pr-conventional-title handler Test handler running
  ❌ Test with a conventional pr title, expect a successful report
	Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
  ❌ Test with a long pr title and a custom config set for error, expect a failed report
	Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
  ❌ Test with a long pr title and a custom config set for warning, expect a successful report with a warning
	Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length

✅ tests/handlers/pr-lifecycle-labels.test.js

Testing the pr-lifecycle-labels Test handler matching
  ✅ Test an unknown event type, expect a false match
  ✅ Test pull_request event type with an unknown action type, expect a false match
  ✅ Test pull_request event type with closed action type, expect a match
  ✅ Test pull_request event type with edited action type, expect a match
  ✅ Test pull_request event type with opened action type, expect a match
  ✅ Test pull_request event type with ready_for_review action type, expect a match
  ✅ Test pull_request event type with reopened action type, expect a match
  ✅ Test pull_request event type with synchronize action type, expect a match
  ✅ Test pull_request_review event type with an unknown action type, expect a false match
  ✅ Test pull_request_review event type with dismissed action type, expect a match
  ✅ Test pull_request_review event type with edited action type, expect a match
  ✅ Test pull_request_review event type with submitted action type, expect a match
Testing the pr-lifecycle-labels Test handler running
  ✅ Test a pr with change requests, expect the changesRequested label to be added to the pr
  ✅ Test a pr with no reviews, expect the reviewRequired label to be added to the pr
  ✅ Test a pr with reviews but no change requests or approvals, expect the reviewStarted label to be added to the pr
  ✅ Test an approved pr with enough approvals, expect the approved label to be added to the pr
  ✅ Test an approved pr with less then enough approvals, expect the moreReviewsRequired label to be added to the pr
  ✅ Test ignore drafts config with a draft pr, expect the check to be skipped
  ✅ Test invalid config, {"ignoreDrafts":false}, expect the check to be neutral
  ✅ Test invalid config, {"labels":{"unknownLabel":"noKnownLabels"}}, expect the check to be neutral
  ✅ Test invalid config, {"labels":{}}, expect the check to be neutral
  ✅ Test invalid config, {}, expect the check to be neutral
  ✅ Test selected lifecycle label is added to the pr, expect the check to succeed
  ✅ Test selected lifecycle label not configured, expect the check to succeed
  ✅ Test with addLabels API endpoint response not successful, expect the check to fail
  ✅ Test with addLabels API endpoint response promise rejection, expect the check to fail
  ✅ Test with getBranchProtection API endpoint response not successful, expect the approved label to be added to the pr
  ✅ Test with getBranchProtection API endpoint response not successful, expect the check to fail
  ✅ Test with getBranchProtection API endpoint response promise rejection, expect the approved label to be added to the pr
  ✅ Test with getLabel API endpoint response promise rejection, expect the check to fail
  ✅ Test with listReviews API endpoint response not successful, expect the reviewRequired label to be added to the pr
  ✅ Test with listReviews API endpoint response promise rejection, expect the reviewRequired label to be added to the pr

✅ tests/handlers/pr-signed-commits.test.js

Testing the pr-signed-commits handler Test handler matching
  ✅ Test an unknown event type, expect a false match
  ✅ Test pull_request event type with an unknown action type, expect a false match
  ✅ Test pull_request event type with edited action type, expect a match
  ✅ Test pull_request event type with opened action type, expect a match
  ✅ Test pull_request event type with synchronize action type, expect a match
Testing the pr-signed-commits handler Test handler running
  ✅ Test ignored email is ignored, expect a successful check run
  ✅ Test ignored user name is ignored, expect a successful check run
  ✅ Test with listCommits API endpoint response not successful, expect a report indicating a possible API error
  ✅ Test with listCommits API response endpoint promise rejection, expect a report indicating a possible API error
  ✅ Test with one commit signed by a Bot, not author or committer, expect a successful check run
  ✅ Test with one commit signed by someone else (not author/committer), expect a failed check run
  ✅ Test with one commit signed by the author, expect a successful check run
  ✅ Test with one commit signed by the author, with a domainNotFound service error, expect a failed check run
  ✅ Test with one commit signed by the author, with a invalidEmailStructure service error, expect a failed check run
  ✅ Test with one commit signed by the author, with a noMxRecords service error, expect a failed check run
  ✅ Test with one commit signed by the author, with a SMTPConnectionError service error, expect a failed check run
  ✅ Test with one commit signed by the author, with a SMTPConnectionTimeout service error, expect a failed check run
  ✅ Test with one commit signed by the committer, expect a successful check run
  ✅ Test with one unsigned commit, expect a failed check run
  ✅ Test with two commits signed by the author, expect a successful check run
  ✅ Test with two commits, one is unsigned by bot, and one signed by author, expect a successful check run
  ✅ Test with two commits, one unsigned and one signed by the author, expect a failed check run

✅ tests/handlers/pr-tasks-list.test.js

Testing the pr-tasks-list handler Test handler matching
  ✅ Test an unknown event type, expect a false match
  ✅ Test pull_request event type with an unknown action type, expect a false match
  ✅ Test pull_request event type with edited action type, expect a match
  ✅ Test pull_request event type with opened action type, expect a match
  ✅ Test pull_request event type with synchronize action type, expect a match
Testing the pr-tasks-list handler Test handler running
  ✅ Test with all tasks checked, expect the check to pass with a summary of the completed tasks
  ✅ Test with not tasks, expect the check to fail providing notification indicating no tasks found
  ✅ Test with unchecked tasks, expect the check to fail with a report of the not yet completed tasks

Annotations

Check failure on line 157 in src/handlers/pr-conventional-commits.js

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Run

tests/handlers/pr-conventional-commits.test.js ► Testing the pr-conventional-commits handler Test handler running ► Test with one error commit message, expect one error report

Failed test found in:
  unit-tests-result.json
Error:
  Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
Raw output
RangeError: Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
    at lint (node_modules/@commitlint/lint/lib/lint.js:53:15)
    at async lintCommit (src/handlers/pr-conventional-commits.js:157:17)
    at async Promise.all (index 0)
    at async module.exports.run (src/handlers/pr-conventional-commits.js:63:9)
    at async assertHandlerOperation (tests/handlers/pr-conventional-commits.test.js:317:13)
    at async Context.<anonymous> (tests/handlers/pr-conventional-commits.test.js:187:13)

Check failure on line 157 in src/handlers/pr-conventional-commits.js

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Run

tests/handlers/pr-conventional-commits.test.js ► Testing the pr-conventional-commits handler Test handler running ► Test with one good commit message, expect a successful result

Failed test found in:
  unit-tests-result.json
Error:
  Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
Raw output
RangeError: Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
    at lint (node_modules/@commitlint/lint/lib/lint.js:53:15)
    at async lintCommit (src/handlers/pr-conventional-commits.js:157:17)
    at async Promise.all (index 0)
    at async module.exports.run (src/handlers/pr-conventional-commits.js:63:9)
    at async assertHandlerOperation (tests/handlers/pr-conventional-commits.test.js:317:13)
    at async Context.<anonymous> (tests/handlers/pr-conventional-commits.test.js:213:13)

Check failure on line 157 in src/handlers/pr-conventional-commits.js

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Run

tests/handlers/pr-conventional-commits.test.js ► Testing the pr-conventional-commits handler Test handler running ► Test with one non-standard error based a custom configuration, expect a report error

Failed test found in:
  unit-tests-result.json
Error:
  Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
Raw output
RangeError: Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
    at lint (node_modules/@commitlint/lint/lib/lint.js:53:15)
    at async lintCommit (src/handlers/pr-conventional-commits.js:157:17)
    at async Promise.all (index 0)
    at async module.exports.run (src/handlers/pr-conventional-commits.js:63:9)
    at async assertHandlerOperation (tests/handlers/pr-conventional-commits.test.js:317:13)
    at async Context.<anonymous> (tests/handlers/pr-conventional-commits.test.js:310:13)

Check failure on line 157 in src/handlers/pr-conventional-commits.js

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Run

tests/handlers/pr-conventional-commits.test.js ► Testing the pr-conventional-commits handler Test handler running ► Test with one warning commit message, expect one warning report

Failed test found in:
  unit-tests-result.json
Error:
  Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
Raw output
RangeError: Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
    at lint (node_modules/@commitlint/lint/lib/lint.js:53:15)
    at async lintCommit (src/handlers/pr-conventional-commits.js:157:17)
    at async Promise.all (index 0)
    at async module.exports.run (src/handlers/pr-conventional-commits.js:63:9)
    at async assertHandlerOperation (tests/handlers/pr-conventional-commits.test.js:317:13)
    at async Context.<anonymous> (tests/handlers/pr-conventional-commits.test.js:150:13)

Check failure on line 157 in src/handlers/pr-conventional-commits.js

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Run

tests/handlers/pr-conventional-commits.test.js ► Testing the pr-conventional-commits handler Test handler running ► Test with one warning, one error, and one good commit message, expect a report for both the warning and the error

Failed test found in:
  unit-tests-result.json
Error:
  Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
Raw output
RangeError: Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
    at lint (node_modules/@commitlint/lint/lib/lint.js:53:15)
    at async lintCommit (src/handlers/pr-conventional-commits.js:157:17)
    at async Promise.all (index 0)
    at async module.exports.run (src/handlers/pr-conventional-commits.js:63:9)
    at async assertHandlerOperation (tests/handlers/pr-conventional-commits.test.js:317:13)
    at async Context.<anonymous> (tests/handlers/pr-conventional-commits.test.js:271:13)

Check failure on line 40 in src/handlers/pr-conventional-title.js

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Run

tests/handlers/pr-conventional-title.test.js ► Testing the pr-conventional-title handler Test handler running ► Test with a conventional pr title, expect a successful report

Failed test found in:
  unit-tests-result.json
Error:
  Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
Raw output
RangeError: Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
    at lint (node_modules/@commitlint/lint/lib/lint.js:53:15)
    at async module.exports.run (src/handlers/pr-conventional-title.js:40:22)
    at async assertHandlerOperation (tests/handlers/pr-conventional-title.test.js:108:13)
    at async Context.<anonymous> (tests/handlers/pr-conventional-title.test.js:128:13)

Check failure on line 40 in src/handlers/pr-conventional-title.js

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Run

tests/handlers/pr-conventional-title.test.js ► Testing the pr-conventional-title handler Test handler running ► Test with a long pr title and a custom config set for error, expect a failed report

Failed test found in:
  unit-tests-result.json
Error:
  Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
Raw output
RangeError: Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
    at lint (node_modules/@commitlint/lint/lib/lint.js:53:15)
    at async module.exports.run (src/handlers/pr-conventional-title.js:40:22)
    at async assertHandlerOperation (tests/handlers/pr-conventional-title.test.js:108:13)
    at async Context.<anonymous> (tests/handlers/pr-conventional-title.test.js:176:13)

Check failure on line 40 in src/handlers/pr-conventional-title.js

See this annotation in the file changed.

@github-actions github-actions / Unit Tests Run

tests/handlers/pr-conventional-title.test.js ► Testing the pr-conventional-title handler Test handler running ► Test with a long pr title and a custom config set for warning, expect a successful report with a warning

Failed test found in:
  unit-tests-result.json
Error:
  Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
Raw output
RangeError: Found invalid rule names: header-trim. Supported rule names are: body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, header-case, header-full-stop, header-max-length, header-min-length, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-exclamation-mark, trailer-exists, type-case, type-empty, type-enum, type-max-length, type-min-length
    at lint (node_modules/@commitlint/lint/lib/lint.js:53:15)
    at async module.exports.run (src/handlers/pr-conventional-title.js:40:22)
    at async assertHandlerOperation (tests/handlers/pr-conventional-title.test.js:108:13)
    at async Context.<anonymous> (tests/handlers/pr-conventional-title.test.js:152:13)