stefanbuck / github-issue-parser

MIT License
86 stars 20 forks source link

Cannot read property `trim` of `null` #33

Closed jamacku closed 2 years ago

jamacku commented 2 years ago

When creating a blank issue with only the headline and empty body, github-issue-parser tracebacks.

Example issue: - https://github.com/jamacku/systemd/issues/29 Example action run: - https://github.com/jamacku/systemd/runs/8070557950?check_suite_focus=true#step:3:1

(node:1642) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'trim' of null
    at run (/home/runner/work/_actions/stefanbuck/github-issue-parser/fc06b2a0adc5ccb7702ab6b641fd8a742a5e9cc0/dist/index.js:76:6)
    at Object.932 (/home/runner/work/_actions/stefanbuck/github-issue-parser/fc06b2a0adc5ccb7702ab6b641fd8a742a5e9cc0/dist/index.js:135:3)
    at __nccwpck_require__ (/home/runner/work/_actions/stefanbuck/github-issue-parser/fc06b2a0adc5ccb7702ab6b641fd8a742a5e9cc0/dist/index.js:4803:43)
    at /home/runner/work/_actions/stefanbuck/github-issue-parser/fc06b2a0adc5ccb7702ab6b641fd8a742a5e9cc0/dist/index.js:4821:37
    at Object.<anonymous> (/home/runner/work/_actions/stefanbuck/github-issue-parser/fc06b2a0adc5ccb7702ab6b641fd8a742a5e9cc0/dist/index.js:4824:12)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
(node:1642) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1642) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 2.0.3 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: