docs: correct the fork pull request policy and add maintainer setup
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
This commit is contained in:
1 parent
c2465c7005
commit
3869718450
2 files changed
+29
-13
No files matched your search
+24
-7
@@ -1,19 +1,36 @@
|
||||
# Contributing
|
||||
|
||||
- Open a pull request against `main`. Pull requests from forks need a
|
||||
maintainer's approval before any workflow runs, and CI never receives secrets
|
||||
on pull requests.
|
||||
- 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](https://www.conventionalcommits.org/)
|
||||
(`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 as
|
||||
`minor_changes:` or `bugfixes:`). Pure CI or docs changes use `trivial:`.
|
||||
- Role variables carry the role name as a prefix (`<role>_<name>`).
|
||||
- Third-party material needs an SPDX header and an entry in `NOTICE`.
|
||||
- Third-party material needs an SPDX header, a `REUSE.toml` annotation (it
|
||||
overrides file headers) and an entry in `NOTICE`.
|
||||
- Set up the tooling with `pip install -r requirements-dev.txt` in a virtualenv,
|
||||
then run `pre-commit install --install-hooks` once and
|
||||
`pre-commit run --all-files` before pushing.
|
||||
- Never commit credentials, tokens or key material.
|
||||
- Releases are cut by the maintainer: bump `version` in `galaxy.yml`, run
|
||||
`antsibull-changelog release` in a release PR, then push an annotated
|
||||
`vX.Y.Z` tag.
|
||||
- Releases are cut by the maintainer: bump `version` in `galaxy.yml`, add a
|
||||
`release_summary:` fragment, run `antsibull-changelog release` in a release PR
|
||||
(commit the generated `CHANGELOG.rst` and `changelogs/.plugin-cache.yaml`), then
|
||||
push an annotated `vX.Y.Z` tag.
|
||||
|
||||
## 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 the `Lint` and `Build` checks.
|
||||
- The image workflow (`.gitea/workflows/image.yml`) pushes with the Actions job token
|
||||
when Gitea allows it, otherwise with the organisation secrets
|
||||
`PACKAGE_PUSH_USER` and `PACKAGE_PUSH_TOKEN` (a bot user with write access to the
|
||||
organisation's packages and a token with only the `write:package` scope). Keep
|
||||
those the only credentials stored at organisation level.
|
||||
Reference in new issue
Block a user