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

fix(platform/gitlab): Strip unicode null characters from markdown #19664

Merged
merged 8 commits into from Jan 11, 2023

Conversation

nfm
Copy link
Contributor

@nfm nfm commented Jan 4, 2023

Attempting to post a comment with null characters in them fails with a 400 error. See #19532 for more details.

Changes

Strip unicode null characters from GitLab markdown, as their presence prevents comments from being posted. bundler appears to generate some error messages that include them.

Context

#19532

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

Attempting to post a comment with null characters in them fails with a 400 error. See renovatebot#19532 for more details.
@nfm nfm changed the title Strip unicode null characters from GitLab markdown fix: Strip unicode null characters from GitLab markdown Jan 4, 2023
@nfm nfm changed the title fix: Strip unicode null characters from GitLab markdown fix(platform/gitlab): Strip unicode null characters from GitLab markdown Jan 4, 2023
viceice
viceice previously approved these changes Jan 5, 2023
@viceice viceice enabled auto-merge (squash) January 5, 2023 14:06
@viceice viceice changed the title fix(platform/gitlab): Strip unicode null characters from GitLab markdown fix(platform/gitlab): Strip unicode null characters from markdown Jan 5, 2023
@viceice viceice disabled auto-merge January 5, 2023 14:06
@viceice viceice enabled auto-merge (squash) January 5, 2023 14:06
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

Something is wrong with your solution

lib/modules/platform/gitlab/index.spec.ts Outdated Show resolved Hide resolved
auto-merge was automatically disabled January 5, 2023 22:56

Head branch was pushed to by a user without write access

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
viceice
viceice previously approved these changes Jan 6, 2023
@viceice viceice enabled auto-merge (squash) January 6, 2023 09:00
@viceice viceice disabled auto-merge January 6, 2023 11:18
The mocks appear not to be isolated properly between tests, and having a
test that mocks this before a test that does not causes the latter to
fail.
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

conflicts

yarn.lock Outdated Show resolved Hide resolved
@rarkins rarkins enabled auto-merge (squash) January 11, 2023 12:53
@rarkins rarkins merged commit 218ac84 into renovatebot:main Jan 11, 2023
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 34.98.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants