Changing how and what pull request companion adds to pull requests #51
-
A discussion started on Matrix about the general noisiness of the PR review companion on pull requests on mdn/content. One option offered was using a GitHub Action to collapse comments from the Instead of "muting" the companion, perhaps we must address what it reports on pull requests. @wbamberg mentioned:
@SphinxKnight seconded that:
@OnkarRuikar added that:
This discussion then intends to conclude how the PR companion can be most effective and file an issue for consideration by engineering. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 16 replies
-
My only complaint about the PR review companion is that it creates a huge comment(mdn/content#15334 (comment)). Getting to the relevant discussion involves a lot of mouse wheeling. Then when you realize that the comment is really huge you need to grab the scrollbar. Let us keep all the features as it is, one may find them useful in certain situations. I would love to see the comment as small as possible. This is how it will look if we use the Not all readers refer to the info. Also, when we revisit the PR we are interested in review comments and discussion more. Readers can always expand the comment and see the info. On top of it following improvements can also be done:
Video1.movA temporary solution till this gets implementedI've created a Tampermonkey (Firefox, Chrome) script that searches given usernames and minimizes their comments and adds a Minimize button. |
Beta Was this translation helpful? Give feedback.
-
Thanks for starting this @schalkneethling 🙏 I don't want to fall into scope creep here but from a localizer's point of view, I'd say:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for start the discoussion @schalkneethling
I think this could be so helpful, if it's possible
Also this could be helpful for those who said that is a large comment, by sections I consider that the flaws section is helpful for make a quick revision without have to fork the patch. |
Beta Was this translation helpful? Give feedback.
-
We want to start looking at improving the pr review companion. There's some great ideas already in this discussion, easily a details element would help with minimising the size of these comments. But I would really like to know before we start planning: What would you like to see in the pr review? Here's my initial list:
The latter here could be a separate bot, would it make sense to have a 'thank you for the pr, here's some info for you' message, then the review companion with info helpful to reviewers? |
Beta Was this translation helpful? Give feedback.
-
I would throw in a screenshot from Netlify's GitHub bot for a reference: The QR code cell is collapsible, so it can be expanded showing content that is large (this might work well if there are many links to changed pages). I like that it uses a table with Docusaurus also have a similar way of reporting PR impact with their lighthouse bot |
Beta Was this translation helpful? Give feedback.
-
For me the starting point is: there is too much in the PR companion's output that is (almost never) useful and is just a source of noise. So I think the bar to adding new things should be quite high and should meet a definite identified need. For instance, are there lots of cases where reviewers would have used the Lighthouse report when reviewing content PRs? Another reason to be careful here is performance: the PR companion is already slow to run. This is made worse by the fact that many of our PRs are from first-time contributors, so workflows aren't run by default. So a reviewer has to push the button, then wait for the previews to be built (or more likely context-switch into something else and forget about the PR). One thing that would help, that I'm not even sure is possible. In the preview pages, internal links in pages (like "/en-US/docs/Web/CSS/margin") get resolved to the preview base URL, like "https://pr20182.content.dev.mdn.mozit.cloud". This means all links from a preview page that aren't to another page edited in the same PR are broken, which makes it hard to check that a PR hasn't broken links. It would be a lot better for reviewers if links were resolved to https://developer.mozilla.org.
Really unsure about this. I think it would encourage people to file lots of low-value PRs. |
Beta Was this translation helpful? Give feedback.
-
Hello to everyone! Personally I use the PR preview links more than other thing, I'm not sure about add or remove things, but could help making collapsible throught
Also this could help to have a better flaws criteria |
Beta Was this translation helpful? Give feedback.
-
Following work has been done recently to reduce the companion's comment size:
Now the comment won't be bigger than 9 lines: Example 2: mdn/content#20871 (comment) GitHub's markdown is highly sanitized; inline attributes like |
Beta Was this translation helpful? Give feedback.
Following work has been done recently to reduce the companion's comment size:
Now the comment won't be bigger than 9 lines:
Example 1: mdn/content#21006 (comment)
Example 2: mdn/content#20871 (comment)
GitHub's markdown is highly sanitized; inline attributes like
style
are removed. So, the options for styling are limited. We need to keep this in mind for further discussion.