-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
meta: Add Showcase
section to PR template
#11750
Conversation
Would it be worth mentioning in a comment that you can make a collapsible display, so the code does not take up a lot of screen space? <details>
<summary>Click to view showcase</summary>
<!-- Spaces added because markdown in markdown -->
` ` `rust
println!("My super cool code.");
` ` `
</details> Click to view showcaseprintln!("My super cool code."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with this section. There is some PR's that are almost only visual changes, but don't include a media or similar, and in most cases I end up having to see locally what it looks like.
I added the changes suggested by @BD103. Unfortunately, it seems adding HTML in the markdown is causing a CI failure? |
Looks like some configuration is warning about no inline html in md files, which is bad in this case, as github only supports this collapsible thing with html 🤔 |
That should be able to be disabled in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good point to call out. I'd argue, though, that creating this split allows the Solution section to be more "reviewer-facing" (e.g. why did we choose this approach, are there open questions or followup work, etc.). The Showcase section can then be "user-facing" and a lot more brief/showy. Would it help if we intentionally call that out in the template? |
Related discussion is occurring in the tools for migration guides thread on Discord. I've proposed a "S-Needs-Release-Note" label, which would then be read and used to populate stub sections of the upcoming release notes (and do the same thing for migration guides. |
I think the workflow used for the 0.14 RC makes this PR obsolete, doesn't it @alice-i-cecile ? |
In what way? I think it helps prompt authors to help draft the release notes for their PR, but it's not always the PR author that does those (they may not want to, maybe no longer have the time, etc). I feel that a showcase section at least helps the other writers have a launching point (maybe not even needing to write anything extra), especially if they weren't originally involved with its development. |
I think that the 0.14 workflow makes this more useful actually: if this gets merged we can prepopulate the release notes with this section if it exists. |
Oh, fair enough, you're both right :) |
@MrGVSV can you cut the Changelog section from this PR? That one is definitely redundant, and I'd like to avoid lengthening the template further. |
Oops totally borked that rebase 😅 |
@MrGVSV mdlint is angry with you, but once you appease it I'll happily merge this in. |
@alice-i-cecile imo mdlint is wrong here; a PR template should be allowed to use |
Should I update the mdlint config? |
Yes, please do :) |
Objective
Oftentimes I find myself reading through a PR and not quite understanding what's going on. Even if it's super detailed, it can sometimes be difficult to imagine what the end result of the PR might look like.
For example, #10756 clearly communicates its goals and contains a descriptive Changelog. However, I was still a bit lost as to what a user might see from the change until I saw the dedicated example in the diff.
Solution
At the risk of giving contributors more work, I think a dedicated
Showcase
section could be really nice.Along with providing reviewers stumbling on the PR with a "tangible summary" of the change, it should also help out when working on the release post. Sometimes someone other than the PR's author has to write up a blog section on the PR. This can be somewhat daunting to people wanting to contribute in that effort as they have to rely on the Migration Guide giving a decent example (assuming it's a breaking change), piecing together the other sections into a sensible example themselves, or manually reading through the diff.
Theoretically, this new
Showcase
section would be more of an encouragement than a strict requirement. And it's probably only going to be useful where there is something to showcase (e.g. visual changes, API changes, new features, etc.).Bikeshedding
Demo
andExample
, but there may be others we prefer. I choseShowcase
to communicate the feeling of fun and appreciation for the work contributors put in.Changelog
section since I felt it made sense to move from the details inSolution
to a brief example inShowcase
to a tl;dr of the changes inChangelog