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

Add a CONTRIBUTING.md #43

Open
ttton opened this issue May 29, 2019 · 11 comments · May be fixed by #49
Open

Add a CONTRIBUTING.md #43

ttton opened this issue May 29, 2019 · 11 comments · May be fixed by #49

Comments

@ttton
Copy link
Contributor

ttton commented May 29, 2019

To aid new contributors, we should include a concise guide on how best to contribute code to the official repository. It should describe as simply as possible the process for contributing, guidelines for reviews and code quality, the git flow and any caveats or limitations.

The guide should follow standard conventions used in other public git repositories, so that it is as easy as possible to discover and follow.

Thoughts / ideas / suggestions?

Feel free to drop your thoughts in below about what the contributing guide should cover, its format and any other ways we could make life easier for contributors.

@shtrom
Copy link

shtrom commented Jun 3, 2019

Ideas of things to include:

  • PSR-compliance
  • whitespaces changes
  • testsuite (ran and/or added)

@ttton
Copy link
Contributor Author

ttton commented Jun 5, 2019

I would add to this list:

  • Guidelines to commits / PRs
  • Summary of review / merge process

@ttton
Copy link
Contributor Author

ttton commented Jun 5, 2019

  • Documentation
  • Code comments and doc blocks

@shtrom
Copy link

shtrom commented Jun 6, 2019

  • Copyright assignment

@ttton
Copy link
Contributor Author

ttton commented Jun 6, 2019

We can use this as a reference for PSR-2 compatibility: https://www.php-fig.org/psr/psr-2/

Other things to consider including or mentioning:

@shtrom
Copy link

shtrom commented Jun 7, 2019

Notes on good commits: separate lint/whitespace, refactors, bugfixes, and features. Keep each commit as a single consistent and meaningful piece of work.

@ttton
Copy link
Contributor Author

ttton commented Jun 12, 2019

  • Consistent coding style and usage of syntax/idioms (e.g. treatment of colon-syntax control structures)

@ttton
Copy link
Contributor Author

ttton commented Jun 12, 2019

According to the current composer.json, this library is licensed under GPL 2.0; I wonder if, to make it clearer to contributors, it's better to also include a copy of the license in a LICENSE.md and reference it in the contribution guide?

@shtrom
Copy link

shtrom commented Jun 12, 2019 via email

@shtrom
Copy link

shtrom commented Jun 13, 2019

Add a PR template, too, with the most important checkboxes (phpcbf, tests, ....)

@ttton
Copy link
Contributor Author

ttton commented Jun 18, 2019

This is probably a useful reference in terms of inspiration for content:
https://github.com/symfony/symfony/blob/4.4/CONTRIBUTING.md

@ttton ttton linked a pull request Jun 18, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants