| name | dev-workflow |
|---|---|
| description | Branches, CI expectations, Composer test/docs, PR hygiene for Contentstack PHP SDK. |
- Setting up locally, opening a PR, or aligning with repository automation.
- Answering “how do we run tests?” or “why did the branch check fail?”
- Use feature branches (e.g.
feat/...,fix/..., ticket branches). .github/workflows/check-branch.ymlblocks pull requests intomasterunless the head branch isstaging(SRE policy). Prefer PRs tostagingwhen targeting a master release train.- Policy / SCA workflows may run on PRs (see
.github/workflows/policy-scan.yml,sca-scan.yml).
- Install:
composer install - Tests:
composer testorvendor/bin/phpunit(config:phpunit.xml, suite undertest/). - Tests may require Contentstack credentials or mocks as documented in
test/README.md—do not commit secrets.
- Doctum:
composer run generate:docs(seeconfig.php, output per Doctum defaults).
- Build/tests pass locally where applicable (
composer test). - Follow the code-review skill (
skills/code-review/SKILL.md) before merge. - Prefer backward-compatible public API; call out breaking changes and semver.
- Update
CHANGELOG.mdwhen behavior visible to integrators changes.
skills/testing/SKILL.mdskills/code-review/SKILL.md