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

Ignore diff in blank lines when posting issue back to github #6819

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

akhismat
Copy link
Contributor

@akhismat akhismat commented Oct 5, 2024

Ignore diff in blank lines when posting issue back to github

Huly®: UBERF-8367

@akhismat akhismat requested a review from aonnikov October 5, 2024 09:37
.split('\n')
.map((it) => it.trimEnd())
.join('\n')
const normalizeLineEndings = (str: string) =>
Copy link
Member

Choose a reason for hiding this comment

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

If comments will not be supported we will potentially break description on github, let's support html/comments first and then add a trim of lines >2 into 1 into comparison, but not allow without line and with line be the same.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just fyi: even with this change description with comment and without comment will not be equal.

Copy link
Member

@haiodo haiodo left a comment

Choose a reason for hiding this comment

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

I'm not ready to merge it before comments will be supported.

@akhismat
Copy link
Contributor Author

akhismat commented Oct 8, 2024

@haiodo
There are two independent problems:

  1. Extra empty lines.
  2. Comments, which are not yet supported. Huly just removes them from a description and never put the issue back to GitHub because the description was changed.

This PR has fix only for №1:
Allow put issue back if changes are in empty lines only.

№2 is in progress
But even with this change Huly will never re-write the description in case the original issue has comments in the description.

Are you OK with this fix for №1 only?

@akhismat akhismat marked this pull request as draft October 9, 2024 16:58
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