Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property trim of null #33

Closed
jamacku opened this issue Aug 29, 2022 · 1 comment · Fixed by #34
Closed

Cannot read property trim of null #33

jamacku opened this issue Aug 29, 2022 · 1 comment · Fixed by #34
Labels

Comments

@jamacku
Copy link
Contributor

jamacku commented Aug 29, 2022

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

Example issue: - jamacku/systemd#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.
jamacku added a commit to jamacku/github-issue-parser that referenced this issue Aug 29, 2022
stefanbuck added a commit that referenced this issue Aug 29, 2022
* fix: Handle correctly issues with an empty body

Fixes: #33

* Update fixtures/blank/issue.js

Co-authored-by: Gregor Martynus <[email protected]>

Co-authored-by: Stefan Buck <[email protected]>
Co-authored-by: Gregor Martynus <[email protected]>
@github-actions
Copy link

🎉 This issue has been resolved in version 2.0.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant