Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 2.01 KB

CONTRIBUTING.md

File metadata and controls

38 lines (30 loc) · 2.01 KB

Contributing to thesis/http

The source and tests live in packages/http in the thesis-php/thesis monorepo. On each push to main, CI copies the files Composer installs to this read-only repository. Issues and pull requests are disabled here: open them in the monorepo. The next split overwrites commits made here.

Issues

Report a bug or request a feature in the monorepo. Choose thesis/http. For bugs, include the version, code to reproduce the bug, and the expected and actual results. See SECURITY.md to report a vulnerability privately.

Pull requests

Use Git, Docker and Make. Containers use the monorepo's PHP version.

  1. Fork thesis-php/thesis and clone your fork.
  2. Install the dependencies: make i.
  3. Change the code in packages/http/src/ and its tests in packages/http/tests/. Cover each change with a test.
  4. Check the package while you work:
    • make test P=http runs its tests and starts the services they need,
    • make phpstan P=http runs static analysis,
    • make fix P=http applies Rector and the code style.
  5. A change that users of the package can notice gets an entry under ## [Unreleased] of packages/http/CHANGELOG.md (Keep a Changelog). Leave version headings to the maintainers.
  6. If you changed packages/http/package.php (dependencies, description, keywords), run make sync and commit the generated files: CI fails on any difference.
  7. Run make check, which runs everything CI runs, and open a pull request to main in the monorepo.

The rules of the code and of the monorepo are in AGENTS.md and the files it links.