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 detection of previous PR annotation comments #3

Merged
merged 4 commits into from
Aug 8, 2024

Conversation

adrianmusante
Copy link
Owner

This change resolves the issue where SonarQube summary comments in GitHub pull request conversations are not hidden, leaving only the current summary.

Ref: mc1arke/sonarqube-community-branch-plugin#898

GreyTeardrop and others added 4 commits April 18, 2024 01:57
MarkdownFormatterFactory uses System.lineSeparator() as the end-of-line
character for annotation comments.

GraphqlGithubClient.postSummaryComment(), however, uses hardcoded \r\n
as end-of-line character, so it isn't able to match legitimate comments
if SonarQube is not running on Windows.

This change updates GraphqlGithubClient to also use system end-of-line
char.
@adrianmusante adrianmusante merged commit 03dd8e7 into master Aug 8, 2024
@adrianmusante adrianmusante deleted the fix-comment-minimizing branch August 8, 2024 00:40
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.

3 participants