Skip to content

Fix #356: Make "Create a Good PR" tutorial #457

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

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

LittleRainC
Copy link
Contributor

Fix #356: Make "Create a Good PR" tutorial -> Make "Create a Good PR" tutorial.

Changed files:

  • Add a "Create a Good PR" file - add the page of it
  • Siderbar.md - add a link for "Create a Good PR" under "Making your first PR" - "Rules for making PRs"

image
image
image
image
image

add "Create a Good PR" under "Making your first PR"
Add table of content part
Copy link
Member

@seanlip seanlip left a comment

Choose a reason for hiding this comment

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

Thanks @LittleRainC! Left some notes, PTAL.

_Sidebar.md Outdated
@@ -32,6 +32,7 @@
* [[Tips for analyzing the codebase|Analyzing-the-codebase]]
* [[Learning resources for developers|Learning-Resources]]
* [[Rules for making PRs|Rules-for-making-PRs]]
* [[Create a Good PR|Create a Good PR]]
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should reorganize this section...

  • Good first issues (bolded)
  • Tips for finding the right code to change
    • Finding the commit that introduced a bug
    • Tips for analyzing the codebase
  • How to create a good PR (your new page, bolded)
    • Rules for making PRs
    • Coding style guide

and we move the learning resources for developers to the "getting started" section above? Just some thoughts, feel free to suggest a better ordering -- we want devs to discover this page. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

adjusted as pointed above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
adjusted as pointed

- [Reviewers Appreciate...](#reviewers-appreciate)
- [Need Help?](#need-help)

This page is an introduction to creating a great Pull Request(PR). A great Pull Request (PR) is more than just code—it’s clean, clear, and easy for reviewers to understand. This guide shares best practices for writing high-quality PRs that are easy to review and quick to merge.
Copy link
Member

Choose a reason for hiding this comment

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

add space between "Pull Request" and "(PR)" in first sentence

Copy link
Contributor Author

Choose a reason for hiding this comment

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

adjusted as pointed above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

adjusted -> Create a Good PR
image


Contributing code is awesome—but making it **easy to review** is just as important. A thoughtful PR saves time for reviewers, avoids misunderstandings, and helps Oppia maintain a high standard of quality.

## Before You Open Your PR
Copy link
Member

Choose a reason for hiding this comment

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

In this doc, do you need to refer to the more detailed "PR guide" at some point?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a link for the detailed PR guide as a essential checklist, and I think it might be okey?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a link for the detailed PR guide.
image


## Final Checklist Before You Request Review

- My PR addresses **one issue only**
Copy link
Member

Choose a reason for hiding this comment

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

Format as a checklist using - [ ] ...? (Not sure)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

adjusted as pointed above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced all the "-" with "- [ ]"
image

Don’t be afraid to ask! You can:

- Tag reviewers in comments
- Use GitHub Discussions
Copy link
Member

Choose a reason for hiding this comment

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

Link to the relevant github discussions category

Copy link
Contributor Author

Choose a reason for hiding this comment

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

link added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added that link
image


- Tag reviewers in comments
- Use GitHub Discussions
- Ask in Oppia’s chat or community channels
Copy link
Member

Choose a reason for hiding this comment

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

How does this differ from the previous bullet point?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed "Ask in Oppia's chat or community channels"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is really a good point. I removed "Ask in Oppia's chat or community channels"
image

Moved the learning resources for developers to the "getting started" section above. Adjusted the structure of makings PRs.
1. Added space between "Pull Request" and "(PR)" in first sentence
2. Added a refer to the more detailed "PR guide" at some point
3. Used a checklist format - [ ] 
4. Linked the relevant github discussions category
5. Removed the "Ask in Oppia’s chat or community channels".
@LittleRainC LittleRainC requested a review from seanlip May 1, 2025 05:51
@seanlip
Copy link
Member

seanlip commented May 5, 2025

@LittleRainC Please don't resolve review comments, it makes it hard for reviewers to tell what has and hasn't been addressed. Follow the instructions in step 5 here and make sure that the assignee is correct as well.

Please fix the above and ensure you are following the correct PR review process -- thanks.

Copy link
Member

@seanlip seanlip left a comment

Choose a reason for hiding this comment

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

Thanks, looks good! Just one small note.


A good pull request isn’t just about working code—it’s about making collaboration easier. Clear, well-structured PRs save reviewers time, reduce confusion, and help maintain high code quality. In open source, thoughtful PRs build trust and keep the project maintainable for everyone.

For the essential checklist and best practices, be sure to follow [Rules for making PRs](./rules-for-making-prs.md)—every good PR starts there.
Copy link
Member

Choose a reason for hiding this comment

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

There's a syntax you can use for links to other pages in the same wiki -- please look at the other wiki pages for how to do this, so that the md files follow a consistent style.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated
image

Copy link
Member

Choose a reason for hiding this comment

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

@LittleRainC The syntax is [Rules for making PRs|Rules-for-making-PRs], right? Please check other wiki pages to make sure I got this correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it should be [Rules for making PRs](https://github.com/oppia/oppia/wiki/Rules-for-making-PRs)". Because in Tutorial-Learn-How-to-Fix-a-CI-Flake-waitFor-Statements.md, you can notice that they used the same syntax.
image

@seanlip
Copy link
Member

seanlip commented May 12, 2025

@LittleRainC Are you still working on this PR?

@LittleRainC
Copy link
Contributor Author

@seanlip Yeah, I'm just a bit busy last week. Sorry!

@seanlip
Copy link
Member

seanlip commented May 17, 2025

Thanks @LittleRainC! Please resolve the merge conflicts, and then I think we can merge this.

@seanlip
Copy link
Member

seanlip commented Jun 2, 2025

@LittleRainC Sorry, one more comment -- #457 (comment)

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.

Make "Create a Good PR" tutorial
2 participants