Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 2.63 KB

git-workflow.md

File metadata and controls

41 lines (27 loc) · 2.63 KB

Git Workflow

Branch naming

Merged PR branches mostly use feat/<topic>, fix/<topic>, docs/<topic>, chore/<topic>, ci/<topic>, or release/<version> (e.g. release/1.0.0b10). A few have no prefix or a one-off prefix such as feature/ or temp/. Dependabot opens dependabot/... branches. Base branch is main.

Commit messages

Conventional Commits prefixes (feat:, fix:, docs:, chore:, refactor:) with an optional scope such as fix(token-vault):, lowercase subject, no trailing period. Example: docs: add 403 guidance for anonymous caller blocking in EXAMPLES.md. No commit linter is configured. Older commits do not all follow this, so match the prefix style for new work.

Pull requests

.github/PULL_REQUEST_TEMPLATE.md sections:

  • Changes: what and why, endpoints and classes/methods added, deleted, deprecated, or changed, screenshots of UI changes, a usage summary for public API changes, and alternative designs considered
  • References: supporting links (tickets, community posts)
  • Testing: how to test, with checkboxes for unit coverage, integration coverage, and latest-platform testing
  • Checklist: Auth0 contribution guidelines, Code of Conduct, all tests passing

The template asks for the classes and methods added, deleted, deprecated, or changed, so build that list from the diff of the public surface (__init__.py __all__, ApiClient public methods, ApiClientOptions, errors.py).

CI workflows

From .github/workflows/.

  • Build and Test (test.yml): pytest + ruff check . across the Python version matrix in that workflow, on PR, merge group, and push to main
  • CodeQL (codeql.yml): on PR, merge group, push to main, and a weekly schedule
  • SCA (sca_scan.yml): Snyk against requirements.txt, with suppressions in .snyk. Runs on push to main or master only, so it does not run on a PR
  • Claude Code PR Review (claude-code-review.yml): on issue comments, PR review comments, and submitted reviews

ruff format is not a check. Reformatting untouched files adds unrelated changes to the diff.

Releases

  • Version source. .version is the source. .shiprc keeps pyproject.toml in step with it.
  • Who cuts a release. publish.yml (manual dispatch, gated on the RL scan), not an agent editing version files.
  • What one publish.yml run does.
    • Takes the release notes from the release/<version> PR body.
    • Creates the GitHub release and its tag.
    • Builds and publishes to PyPI.
  • CHANGELOG.md. Nothing in .github/workflows/, .github/actions/, or .shiprc writes it. Release PRs change it together with the version files.