State the real Gitea approval rule for fork pull requests, require a REUSE.toml annotation for third-party material, describe the release changelog files, and list the repository settings the workflows cannot enforce (protected v* tags, protected main, the package push credential). Drop the references to the private environment repository. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2.0 KiB
2.0 KiB
Contributing
- Open a pull request against
main. A first-time contributor's fork pull request needs a maintainer's approval before workflows run (Gitea waives this once you have a merged pull request). Workflows on fork pull requests get no secrets and a read-only token. - Commit messages follow Conventional Commits
(
feat:,fix:,docs:,ci:...). CI checks every commit. - Every user-visible change needs a changelog fragment in
changelogs/fragments/(antsibull-changelog format, a YAML file with a section such asminor_changes:orbugfixes:). Pure CI or docs changes usetrivial:. - Role variables carry the role name as a prefix (
<role>_<name>). - Third-party material needs an SPDX header, a
REUSE.tomlannotation (it overrides file headers) and an entry inNOTICE. - Set up the tooling with
pip install -r requirements-dev.txtin a virtualenv, then runpre-commit install --install-hooksonce andpre-commit run --all-filesbefore pushing. - Never commit credentials, tokens or key material.
- Releases are cut by the maintainer: bump
versioningalaxy.yml, add arelease_summary:fragment, runantsibull-changelog releasein a release PR (commit the generatedCHANGELOG.rstandchangelogs/.plugin-cache.yaml), then push an annotatedvX.Y.Ztag.
Maintainer setup
Settings the workflows cannot enforce and the repository needs before it accepts outside contributions:
- Protect the
v*tags so only maintainers can create them. A tag run uses the workflow files of the tagged commit and may receive organisation secrets. - Protect
main: pull request required, with theLintandBuildchecks. - The image workflow (
.gitea/workflows/image.yml) pushes with the Actions job token when Gitea allows it, otherwise with the organisation secretsPACKAGE_PUSH_USERandPACKAGE_PUSH_TOKEN(a bot user with write access to the organisation's packages and a token with only thewrite:packagescope). Keep those the only credentials stored at organisation level.