Skip to content

Fix: Nil pointer dereference while previewing PR and Issues with empty body#405

Merged
vilmibm merged 2 commits intocli:masterfrom
arkentos:master
Feb 13, 2020
Merged

Fix: Nil pointer dereference while previewing PR and Issues with empty body#405
vilmibm merged 2 commits intocli:masterfrom
arkentos:master

Conversation

@arkentos
Copy link
Copy Markdown
Contributor

Summary

closes #403

Details

The commit added an empty body check for both issues and PR for preview.
The code ignores the body and the formatting around it if body is empty

PR output

> ./bin/gh pr view -p 2 -R arkentos/tableturner
This is a test PR with empty body
arkentos wants to merge 1 commit into master from README
View this pull request on GitHub: https://github.com/arkentos/tableturner/pull/2

Issue output

./bin/gh issue view -p 1 -R arkentos/tableturner
This is a test issue with empty body
opened by arkentos. 0 comments.
View this issue on GitHub: https://github.com/arkentos/tableturner/issues/1

@arkentos arkentos requested review from mislav and vilmibm and removed request for mislav February 13, 2020 10:16
@billygriffin
Copy link
Copy Markdown
Contributor

Thanks @arkentos. I can't comment on the code itself but just wanted any reviewers to be sure to reference #402 as well as I think there's potentially some overlap.

Copy link
Copy Markdown
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@vilmibm vilmibm merged commit 15d6d4b into cli:master Feb 13, 2020
@arkentos
Copy link
Copy Markdown
Contributor Author

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nil pointer dereference while previewing PR and Issues with empty body

3 participants