Skip to content

Proposal: directly push nits to PR branches #14798

@gibfahn

Description

@gibfahn

Proposal:

For nits and non-controversial changes, collaborators can just edit the PR branch directly and add a commit.

EDIT: changed should to can

Rationale:

I've heard at least one person specifically request that nits and stylistic changes be directly pushed to their branch. I've also noticed with WG meeting minutes, where you tend to get a lot of nits, it's become common for other people to directly push changes.

The argument against doing it is that some people might object, but I think Github's Allow edits from maintainers box already covers that (if people don't want edits they can uncheck it). If lots of people object we can always revisit.

Like editing people's comments (to fix messed up formatting etc.), it's difficult to tell what the exact boundary should be. Rule of thumb would be "only do it for things that you think no-one could object to". If someone disagrees with the change they can just comment requesting the change be removed, or just directly remove it.

Technical details:

At least for single file nits this is easy, you just use the pencil button in the PR:

cc/ @nodejs/collaborators (or anyone else)

image

Starting the commit message with squash! would hopefully be enough to clarify that the commit should be squashed as part of landing. The Contributing and Collaborator guides would need a paragraph each with a brief overview.

It's probably good manners to rerun CI if you add a change (in case you break things).

Alternate suggestion:

We could just make the changes and post them as a diff/patch in a comment, then contributors could apply them if they wanted to (and if they don't know how it won't make their lives harder, they can just manually do the changes the patch suggests). This also removes the issue of Collaborators requesting vague changes like "can you add some more detail here", it'd become "how about this", and contributors could take it or leave it.

Refs: https://github.com/nodejs/moderation/issues/107#issuecomment-320032035

Metadata

Metadata

Assignees

No one assigned

    Labels

    metaIssues and PRs related to the general management of the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions