Skip to content

Conversation

@akhismat
Copy link
Contributor

@akhismat akhismat commented Oct 5, 2024

Ignore diff in blank lines when posting issue back to github

Signed-off-by: Anna Khismatullina <anna.khismatullina@gmail.com>
@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
Contributor

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
Contributor

@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
@akhismat akhismat closed this Dec 10, 2024
@akhismat akhismat deleted the ignore-diff-in-blank-lines branch December 10, 2024 10:43
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