Skip to content

Conversation

@broccolini
Copy link
Contributor

@broccolini broccolini commented Jul 25, 2017

I've updated the contribution guidelines for updating existing modules. I think this is enough for the public contribution guidelines for now. After seeing that there's a bunch of other stuff in here such as bug reporting, I think adding all the docs for githubbers will be a bit too much here so I think I'll add the detailed docs back in the style guide. When it's public, we can link to that from here too.

cc @primer/ds-core


Here are a few things you can do that will increase the likelihood of your pull request being accepted:

- Follow the [style guide][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.

removed this until we have public docs

@broccolini broccolini changed the title [WIP] Update contributor guidelines Update contributor guidelines Jul 25, 2017
1. Fork and clone the primer/primer-css repository.
2. Configure and install the dependencies: `npm install`
3. Check out the dev branch `git checkout dev`
3. Create a new branch from dev `git checkout -b my-branch-name`
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not necessary, but we could collapse these two steps into one with git checkout -b my-branch-name dev.

3. Check out the dev branch `git checkout dev`
3. Create a new branch from dev `git checkout -b my-branch-name`
4. Make your changes, add and commit them.
5. Push your branch and open a pull request. Add a comment describing your proposed changes and request a review from `@primer/ds-core`.
Copy link
Contributor

Choose a reason for hiding this comment

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

This should ask them to open the PR against dev. We could point them at a URL like:

https://github.com/primer/primer-css/compare/dev...my-branch-name

4. Make your changes, add and commit them.
5. Push your branch and open a pull request. Add a comment describing your proposed changes and request a review from `@primer/ds-core`.
6. Wait for CI tests to pass, if they do not, fix the errors or ask for help from `@primer/ds-core`.
7. When CI tests pass, a new npm alpha release will be posted under the CI checks, you can use this npm version for testing in your project or with a GitHub site if you are staff.
Copy link
Contributor

@shawnbot shawnbot Jul 25, 2017

Choose a reason for hiding this comment

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

We might format this step like so to be clearer that these are "sub-tasks" of the CI waiting game:

  1. Wait for CI tests to finish.
    • If the tests pass, you should see a status check telling you which alpha version of primer-css you can install with npm to test your work in other projects.
    • If the tests fail, review the logs and address any issues.
    • If the builds fail for any other reason (as they occasionally do), they may need to be manually restarted.

Copy link
Contributor

@shawnbot shawnbot left a comment

Choose a reason for hiding this comment

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

Looks good. Just a couple of comments and a couple of nit-picky language things to fix up.

## Feature requests

Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to *you* to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible.
Feature requests are welcome but take a moment to find out whether your idea fits with the scope and aims of the project. It's up to *you* to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a comma would make sense before "but" here.

6. Pat your self on the back and wait for your pull request to be reviewed and merged.
Anyone can open a pull request on Primer CSS. You do not need to work at GitHub or be a member of the org to open a pull request.

1. Fork and clone the primer/primer-css repository.
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we just say "this repository"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, though I might link it. It seems obvious to us but with the new setup people might get muddled about where pr's should happen.

2. Configure and install the dependencies: `npm install`
3. Check out the dev branch `git checkout dev`
3. Create a new branch from dev `git checkout -b my-branch-name`
4. Make your changes, add and commit them.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd vote for either "Make your changes, add, and commit them" (with an additional comma) or simply, "Make your changes and commit them".

4. Make your changes and commit them.
5. Push your branch and open a pull request against `dev`. Add a comment describing your proposed changes and request a review from `@primer/ds-core`.
6. Wait for CI tests to finish.
- If the tests pass, you should see a status check telling you which alpha version of primer-css you can install with npm to test your work in other projects.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this sublist needs to be indented one more level to render correctly.

@broccolini broccolini merged commit 8e3775c into master Jul 31, 2017
@broccolini broccolini deleted the contribution-guidelines branch July 31, 2017 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants