Skip to content
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

Things I wish I had known as a new contributor #472

Open
mpdude opened this issue Jan 24, 2023 · 3 comments
Open

Things I wish I had known as a new contributor #472

mpdude opened this issue Jan 24, 2023 · 3 comments

Comments

@mpdude
Copy link

mpdude commented Jan 24, 2023

... to save my own and my fellow reviewers' time. It's not about the codebase itself, but the conventions and processes around it.

  • Which branch to base a PR on? Revamp the contributor guide  #473

    • Rather obvious for bug fix vs. feature addition
    • But what about...
      • Docblock fixups
      • Psalm/type hint improvements
      • Small refactorings like method extractions?
  • How to deal with all the checks and tools? Document how to deal with checks #481

    • How to have CS issues fixed automatically
    • How to run psalm, phpcbf, phpcs, ...
    • What to do when "Codecov" complains about coverage?
  • Dealing with Psalm errors Document how to deal with checks #481

    • When to update the baseline file, what to add, what to remove?
    • When to add exceptions to psalm.xml? When to use @psalm-suppress?
  • Rebase and squash your commits periodically?

    • ORM maintainers are not going to do squash-merges, right?
  • Write good commit messages for single commits vs. keeping the PR initial comment up-to-date?

  • When and how to add deprecations? Document how to contribute deprecations #482

    • How to add deprecations, technically (does an @deprecated annotation suffice, do I need code triggering a notice, ...)
    • Only add deprecations in upcoming feature release branches, right?
    • Where/when/how to provide the code that shall be effective on the next major version?
  • How and when to maintain the UPGRADING.md file

  • Getting PRs reviewed Document how to get your PR reviewed. #484

    • Do checks have to be all green before people will have a look at my code?
    • When shall I use "draft" PRs and what (not) to expect from them?
    • How can I indicate that I need early guidance and/or basic approval, before putting too much effort into detailed clean-ups?

This is not to blame anyone for not providing the necessary instructions and documentation, at least not in places where I would have to stumble across. Rather I am trying to document my observations as long as they are fresh and clear, hoping that the list can serve as starting pointers for future improvements.

👇 Anything missing on the list? Feel free to add your observations.

@greg0ire
Copy link
Member

greg0ire commented Jan 24, 2023

It's going to be hard for us to agree on everything, so I will create several PRs instead of a big one.
Transferring the issue since it isn't ORM-specific.

@greg0ire greg0ire transferred this issue from doctrine/orm Jan 24, 2023
greg0ire added a commit to greg0ire/doctrine-website that referenced this issue May 28, 2023
This addressed question 2 and 3 from doctrine#472
greg0ire added a commit to greg0ire/doctrine-website that referenced this issue May 28, 2023
This addresses question 2 and 3 from doctrine#472
greg0ire added a commit to greg0ire/doctrine-website that referenced this issue May 28, 2023
This addresses question 2 and 3 from doctrine#472
greg0ire added a commit to greg0ire/doctrine-website that referenced this issue May 28, 2023
This addresses question 2 and 3 from doctrine#472
greg0ire added a commit to greg0ire/doctrine-website that referenced this issue May 28, 2023
This addresses question 2 and 3 from doctrine#472
greg0ire added a commit to greg0ire/doctrine-website that referenced this issue May 28, 2023
This addresses question 2 and 3 from doctrine#472
greg0ire added a commit to greg0ire/doctrine-website that referenced this issue May 28, 2023
This addresses question 2 and 3 from doctrine#472
@SenseException
Copy link
Member

@mpdude Is this issue covered for now and can be closed?

@mpdude
Copy link
Author

mpdude commented May 30, 2023

Not all of it yet :-)

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

No branches or pull requests

3 participants