-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
Task: remove html comments from pr description #6086
Conversation
887a4dd
to
7a1289e
Compare
Codecov Report
@@ Coverage Diff @@
## main #6086 +/- ##
==========================================
+ Coverage 91.53% 91.62% +0.08%
==========================================
Files 578 579 +1
Lines 50540 50636 +96
==========================================
+ Hits 46264 46394 +130
+ Misses 4276 4242 -34
|
7a1289e
to
52a442b
Compare
Some changes in main are making mypy fix on all new Pull Request. Update typing for CI to pass.
52a442b
to
68721c5
Compare
What if a comment is explicitly added for example in a code block, like this? <!-- I'm explaining what a comment is --> Pretty unlikely I guess, but this would be removed and leave an empty codeblock... |
Yeah, I guess it would be removed, but I think the PR creator, or maintainer would realize. We can also just have a failing status if html comment is present, but that would be yet one more failing status, and I'm tempted to think that if we have issues, we can refine the code when we get there. |
68721c5
to
8c61fc5
Compare
It should now remove leading/training whitespace, and a single trailing new line if there is one. |
This will edit a PR description to remove any html comment that are present, including leading/trailing whitespace and a single trailing newline if there is one.
As the PRs descriptions are often becoming Merge/rebase-squash messages, this should lead to cleaner commit messages.
Should close #6085