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

Switch howto_contribute to a Github workflow. #3995

Closed
wants to merge 9 commits into from

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Oct 23, 2016

Problem

As discussed at a few summits in a row, rbcommons is painful (and costly) roadblock for new contributors. #3708 suggested reviewing review tools to find an alternative.

Solution

This PR updates the documentation and scripts to switch to a github workflow.

@jsirois
Copy link
Member

jsirois commented Oct 24, 2016

I think we'll need to do this (shown is master, but probably for all long-term branches).

@mateor mateor changed the title Overhaul howto_contribute for a proposed github workflow. Overhaul howto_contribute for a proposed Github workflow. Oct 24, 2016
Copy link
Member

@mateor mateor left a comment

Choose a reason for hiding this comment

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

Testing the github review process. I don't see a 'Fix it and then Ship it" analogue.

It was nice to have two classes of comments

  1. suggestions
  2. prerequisites for a Ship It

I guess the could be split into two reviews? It appears that comments must be classified as a group.

Also, I was able to change the text of the pull request title! I capitalized 'github' to test if the 'edit' button actually allowed me to do that. Crazy.

@@ -90,18 +84,15 @@ committed.

If you've already cloned your repo without forking, you don't have to
re-checkout your repo. First, create the fork on github. Make a note the
Copy link
Member

Choose a reason for hiding this comment

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

"Make a note of the clone url"...

@@ -115,13 +106,14 @@ You can always run the pre-commit checks manually via:
:::bash
$ ./build-support/bin/pre-commit.sh

**Pro tip:** If you want your local master branch to be an exact copy of
**Pro tip:** If you are certain that you have not accidentally committed anything to
Copy link
Member

Choose a reason for hiding this comment

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

I might just remove the Pro tip entirely - seems out of scope for the Pants docs.

them with a link manually or they see it in the google group.
Note that while only committers are available to add in the Assignees field,
any pants contributors may still post reviews if you provide them with a link
manually or they see it in the google group or github notifications.
Copy link
Member

Choose a reason for hiding this comment

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

should probably capitalize all 'github' references.

:::bash
$ git push origin master
A committer should push the `Squash and merge` button on the PR, and ensure that the
commit message generated from the review summary is accurate. In particular, the title should
Copy link
Member

Choose a reason for hiding this comment

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

Yuji points out on the rbcommons review that we should have some kinds of guidelines/template for the PR summary. It would be nice if it looked something like the RBCommons one, but of course we can leave out the RBCommons link. I wonder if the github PR number gets automatically written into the changelog?

Copy link
Member

@jsirois jsirois Oct 24, 2016

Choose a reason for hiding this comment

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

Noting that at a small defeat to the drive towards fully hosted infra, we can write a check webhook that we force to be green for a commit to be merged. That we could run on Amazon and it could check commit messages, etc to our content. We could pair that with a PR creation script as well as a merge script to make this easier-ish to get right from the reviewee and reviewer ends. Lots of "we" in there and I'd be happy to be the we who gets this all setup if folks agree on what to check, etc.

Copy link
Member

Choose a reason for hiding this comment

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

I tested and - at least with only the squash button enabled, it is added at the end of the subject line like so (#1) - that's for PR #1.

@stuhood
Copy link
Sponsor Member Author

stuhood commented Oct 24, 2016

@jsirois : Regarding branch protection: I was going to suggest it, but I was concerned that it would prevent commits to the pushdb. Maybe it's an opportunity to improve how that works to make it optionally branch-based? Might align better with the transactionality of sonatype anyway.

But: we don't currently have any sort of branch protection, so it also feels like a new feature.

@jsirois
Copy link
Member

jsirois commented Oct 24, 2016

Yeah - definitely a new feature, but I also imagine alot of mess-ups using this new system. I hadn't thought about the pushdb - we could allow admins to push w/o review and make sure admins == folks who can publish to sonatype - not ideal.

@stuhood stuhood changed the title Overhaul howto_contribute for a proposed Github workflow. Switch howto_contribute to a Github workflow. Nov 18, 2016
@stuhood stuhood mentioned this pull request Nov 18, 2016
@stuhood
Copy link
Sponsor Member Author

stuhood commented Nov 19, 2016

Merged as e35dc2e

@stuhood stuhood closed this Nov 19, 2016
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.

None yet

4 participants