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 #2

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

a-mnich
Copy link
Owner

@a-mnich a-mnich commented Jul 9, 2024

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.

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.
@a-mnich a-mnich merged commit 99213c0 into a-mnich:enhancements Jul 9, 2024
4 checks passed
@GreyTeardrop GreyTeardrop deleted the fix-comment-minimizing branch August 13, 2024 17:37
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.

2 participants