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

Handle empty issue body when removing HTML #30

Merged
merged 2 commits into from
Sep 30, 2021
Merged

Handle empty issue body when removing HTML #30

merged 2 commits into from
Sep 30, 2021

Conversation

conarro
Copy link
Contributor

@conarro conarro commented Sep 28, 2021

If an issue is created with an empty body, the action failed when calling replace on null. This PR updates the removeHTML function to return an empty string if the text argument is null.

Fixes #31

If an issue is created with an empty body, the action fails when calling `replace` on `null`
src/action.ts Outdated Show resolved Hide resolved
src/action.ts Outdated Show resolved Hide resolved
@rr-codes
Copy link
Contributor

Thanks @conarro! I added a few comments. Would you also mind creating a corresponding issue for this as well please? Thanks!

Co-authored-by: Richard Robinson <richard@rr.codes>
@conarro
Copy link
Contributor Author

conarro commented Sep 28, 2021

@rr-codes filed an issue here #31. Just applied your suggestions, let me know if you want me to squash or anything!

Copy link
Contributor

@marissamarym marissamarym left a comment

Choose a reason for hiding this comment

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

LGTM

@marissamarym marissamarym merged commit 9cb5be2 into tryfabric:master Sep 30, 2021
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.

Sync fails if GitHub Issue has an empty body
3 participants