Skip to content

ci: Add automatically showing contributors how their pull requests affect the release notes - #3393

Merged
ice0 merged 2 commits into
synfig:masterfrom
akayiz:show-pr-change-note
Nov 10, 2024
Merged

ice0 merged 2 commits into
synfig:masterfrom
akayiz:show-pr-change-note

Conversation

@akayiz

@akayiz akayiz commented Aug 3, 2024

Copy link
Copy Markdown
Contributor

This is done by adding a simple GitHub workflow that uses the Release Notes Manager GitHub Action which I created for Synfig during Google Summer of Code 2024.

What does this do?

A detailed explanation of how it works can be found in the video below (originally used in a status update message)

show-pr-change-note.mp4

Why is this beneficial?

  • Enhances the description of the changes in the release notes for clearer understanding, since the contributors' pull requests' titles and descriptions will look bad in the release notes if they aren't clear, and the GitHub bot will encourage them to improve it, so they will automatically improve it to make it more descriptive

  • Gives Synfig's pull requests a more professional feel, which can result in attracting more new contributors

Note

  • The current version of the Release Notes Manager GitHub Action offers limited customization from the workflow in this repository. Additional customization features (like customizing the messages the bot sends) can be added later after closing issue #3377, but for now, if they need to be edited, I can easily edit them in the Release Notes Manager GitHub Action itself

@mohamedAdhamc

Copy link
Copy Markdown
Member

Hey @Ahmed-Khaled-dev

So a change in the title, or the description triggers a rerun. But would adding another commit to the PR also trigger a rerun ? Also do you think it could be possible to replace the original comment instead of making a new one ? I'm worried that maybe in some cases the bot could produce lots of unnecessary comments.

@akayiz

akayiz commented Oct 6, 2024 •

Copy link
Copy Markdown
Contributor Author

Hello @mohamedAdhamc

But would adding another commit to the PR also trigger a rerun ?

Actually, I don't remember if I tested this at the time of creating the feature, so thank you for mentioning this.

No, nothing triggers a rerun except editing the title or description of the pull request (which are the only things in the pull requests that affect the release notes), I tested this now to confirm it, I tested all the following and they all don't trigger a rerun, adding commits, comments, labels, assignees, etc.

Also do you think it could be possible to replace the original comment instead of making a new one? I'm worried that maybe in some cases the bot could produce lots of unnecessary comments.

At the time of creating this feature, I actually thought of the same idea. Still, I decided that since it doesn't comment except when the title or description is changed, then it wouldn't create any unnecessary comments and would give a nice interactive feel in the pull request, continuously showing the contributor and other people how his addition will look like in the release notes.

But since you mentioned it, I just checked if it's doable, and there doesn't seem to be a straightforward way to do it, but I am sure there is a workaround for it.

@mohamedAdhamc

Copy link
Copy Markdown
Member

Screenshot from 2024-10-21 19-49-25

I just tested this and it looks good!

@mohamedAdhamc mohamedAdhamc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Screenshot from 2024-10-21 19-51-46

I suggest changing the text to:
"
Thank you for contributing!
Below is how your contribution will appear in Synfig's release notes. Review it and improve your pull request's title and description so that your contribution is clear. You can add images, videos, and anything else you want. Have fun!
"

Just some punctuation/sentence structure changes. As this would show in every PR.

@akayiz

akayiz commented Oct 22, 2024

Copy link
Copy Markdown
Contributor Author

I agree, the new message looks better, let me know if you would also like me to edit the message that gets sent when they improve their pull request title or description:

image

"
Thank you for trying to improve your contribution description!
Below is how your updated contribution will look like in Synfig's release notes, review it and improve it till you are satisfied!
"

@mohamedAdhamc

Copy link
Copy Markdown
Member

It looks good, just a few small edits.

Thank you for attempting to improve your contribution description!
Below is how your updated contribution will appear in Synfig's release notes. Review it and make further improvements until you're satisfied!

Let me know when you do so. Because when that's done, I think everything else here looks good. I will approve it.

this refines the GitHub bot messages that encourage better PR descriptions
@akayiz
akayiz force-pushed the show-pr-change-note branch from cf4e637 to 107a3f7 Compare October 24, 2024 10:46
@akayiz

akayiz commented Oct 24, 2024

Copy link
Copy Markdown
Contributor Author

Done 👌🏻

image

image

@mohamedAdhamc mohamedAdhamc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me. Works as expected.

@ice0
ice0 merged commit 61df837 into synfig:master Nov 10, 2024
@ice0

ice0 commented Nov 10, 2024

Copy link
Copy Markdown
Collaborator

Merged. Thank you!

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