Skip to content

Conversation

@eternauta1337
Copy link
Contributor

@eternauta1337 eternauta1337 commented Jan 16, 2018

Fixes #211

  1. Move contribution guidelines out of CONTRIBUTING.md in order to make it more user friendly, and modified it so that it is more straight forward for a newcomer.

  2. Add a link to the wiki in README.md.

CONTRIBUTING.md Outdated

### D1 - Simple and Modular
Simpler code means easier audits, and better understanding of what each component does. We look for small files, small contracts, and small functions. If you can separate a contract into two independent functionalities you should probably do it.
## Branching
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 remove this branching section, and simply add a note in the next section to create the pull request against developmnet instead of master.

CONTRIBUTING.md Outdated
5) Maintainers will review your code and possibly ask for changes before your code is pulled in to the main repository. We'll check that all tests pass, review the coding style, and check for general code correctness. If everything is OK, we'll merge your pull request and your code will be part of Open Zeppelin.

Finally go to [github.com/OpenZeppelin/zeppelin-solidity](https://github.com/OpenZeppelin/zeppelin-solidity) in your web browser and issue a new pull request.
*IMPORTANT* It is not uncommon for almost finished PRs to stay unmerged for a long time, so, considering the effort you put in your code, please pay attention to the maintainer's feedback since its a necessary to keep up with the standards Open Zeppelin attains to.
Copy link
Contributor

Choose a reason for hiding this comment

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

Though I like the warning, I feel like it's too negative. I'd remove this, and just add the "Please pay attention to the maintainer's feedback since its a necessary to keep up with the standards Open Zeppelin attains to" to the previous paragraph.

Copy link
Contributor

@frangio frangio left a comment

Choose a reason for hiding this comment

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

Very good improvement. Thanks @ajsantander!

CONTRIBUTING.md Outdated
@@ -1,109 +1,62 @@
Contributing to Zeppelin
Contributing to Open Zeppelin
Copy link
Contributor

Choose a reason for hiding this comment

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

Here and elsewhere, OpenZeppelin should be a single word.

CONTRIBUTING.md Outdated
As a contributor, you are expected to fork this repository, work on your own fork and then submit pull requests. The pull requests will be reviewed and eventually merged into the main repo. See ["Fork-a-Repo"](https://help.github.com/articles/fork-a-repo/) for how this works.

### D4 - Check preconditions and post-conditions
*IMPORTANT* Please use `rebase` instead of `merge`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Add "when updating your branch to include the latest commits", or something similar that explains in what scenario the contributor is expected to rebase.

CONTRIBUTING.md Outdated

## Pull Request Workflow
```
cd my-zeppelin-solidity-fork
Copy link
Contributor

Choose a reason for hiding this comment

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

Generally the directory willl be called zeppelin-solidity, so maybe we should use that directory name here.

git checkout -b fix/some-bug
git checkout -b remove/some-file
2) Branch out from `development` into `fix/some-bug-#123`:
(Postfixing #123 will associate your PR with the issue #123 and make everyone's life easier =D)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if this is required. Is it possible that simply the "closes #pr" is enough for the association?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CONTRIBUTING.md Outdated
git remote add zep [email protected]:OpenZeppelin/zeppelin-solidity.git
git pull --rebase zep master
```
git add -A
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 I'd prefer to discourage git add --all. Not sure though... It's just that explicitly listing the files feels better to me.

@eternauta1337 eternauta1337 merged commit 3a9a2c8 into OpenZeppelin:master Jan 18, 2018
@eternauta1337 eternauta1337 deleted the refactor/info-md-updates branch January 18, 2018 20:30
ProphetDaniel pushed a commit to classicdelta/Smart-Contracts that referenced this pull request Mar 9, 2018
…-updates

Updates to markdown documentation
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.

4 participants