Contributions are welcome, and are accepted via pull requests. Please review these guidelines before submitting any pull requests.
- Fork the project
- Create a new branch
- Code, test, commit and push
- Open a pull request detailing your changes.
- Please ensure the coding style running
composer lint. - Send a coherent commit history, making sure each individual commit in your pull request is meaningful.
- You may need to rebase to avoid merge conflicts.
- Please remember that we follow SemVer.
Clone your fork, then install the dev dependencies:
composer installRefactor your code:
composer refactorLint your code:
composer lintRun all tests:
composer testCheck types:
composer test:typesUnit tests:
composer test:unitIf you have Docker installed, you can quickly get all dependencies for jira-php in place using Docker files. Assuming you have the repository cloned, you may run the following commands:
docker compose buildto build the Docker imagedocker compose run --rm composer installto install Composer dependenciesdocker compose run --rm composer testto run the project tests and analysis tools
If you want to check things work against a specific version of PHP, you may include the PHP build argument when building the image:
docker compose build --build-arg PHP=8.2The default PHP version will always be the lowest version of PHP supported by jira-php.