JIRA REST API Client is an open source, community-driven project. If you'd like to contribute, feel free to do this, but remember to follow these few simple rules:
- A reproducible example is required for every bug report, otherwise it will most probably be closed without warning.
- If you are going to make a big, substantial change, let's discuss it first.
- Create your feature addition or a bug fix branch based on
master
branch in your repository's fork. - Make necessary changes, but don't mix code reformatting with code changes on topic.
- Add entry in
CHANGELOG.md
file following http://keepachangelog.com/ format (if applicable). - Add tests for those changes (please look into
tests/
folder for some examples). This is important so we don't break it in a future version unintentionally. - Check your code using "Coding Standard" (see below).
- Commit your code.
- Squash your commits by topic to preserve a clean and readable log.
- Create Pull Request.
To be able to run integration tests locally (optional) please follow these steps once:
- make sure repository is located in web server document root (or it's sub-folder)
- copy
phpunit.xml.dist
file intophpunit.xml
file - in the
phpunit.xml
file:
- uncomment part, where
REPO_URL
environment variable is defined - set
REPO_URL
environment variable value to URL, from where repository can be accessed (e.g.http://localhost/path/to/repository/
)
Make sure that you don't break anything with your changes by running:
$> ./vendor/bin/phpunit
This library uses Coding Standard to ensure consistent formatting across the code base. Make sure you haven't introduced any Coding Standard violations by running following command in the root folder of the library:
$> ./vendor/bin/phpcs --standard="vendor/aik099/coding-standard/CodingStandard" src tests
or by making your IDE (instructions for PhpStorm) to check them automatically.