Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Maintain repository access

Use this guide to inspect or restore the repository’s settings. Workflow operation is covered by CI/CD, and publication by the release procedure.

Inspect or apply settings

Run from the source checkout. Replace the token-file path with your local Codefloe administration credential:

python3 scripts/codefloe-settings.py --token-file /path/to/codefloe-token

The command prints the repository, branch protections, tag protections, and organization teams. Save this output before changing settings. To apply ci/codefloe-settings.json:

python3 scripts/codefloe-settings.py --token-file /path/to/codefloe-token --apply

The script works with private and public repositories and preserves their current visibility. Visibility is deliberately absent from the settings file; adding a private field makes the command stop before applying changes. Repository publication and package-owner visibility are separate launch steps.

It adds configured maintainers and missing labels; it does not remove team members. Review team membership separately when granting or withdrawing access. Keep the administration token outside CI.

Protections

  • main accepts pull-request merges after both quick and Clippy checks pass. Direct and force pushes are disabled, including for administrators, and the branch rejects commits that Codefloe cannot verify as signed.
  • Pull requests merge fast-forward-only. Codefloe does not currently sign the merge, squash, or rebase commits it generates, so those merge styles are disabled: the reviewed, locally signed and forge-verified source commit must become the new main tip unchanged. Rebase an outdated source branch onto main, re-sign the rewritten commits, and rerun both checks before merging.
  • Rejected reviews and outdated branches block merging. New commits dismiss stale approvals. The independent-approval count is currently zero.
  • The maintainers team has write access and is named in CODEOWNERS. Only that team may create v* tags.

Settings can still be changed by repository administrators. Check the applied rules and access after changing team membership or recreating the repository.

Commit and release credentials

Sign authored commits and include the DCO sign-off with git commit -S -s. Verify the signature locally and on Codefloe after pushing, and verify after the fast-forward that Codefloe’s main SHA is that same commit. Wait for both the pull-request and resulting main push checks. DCO trailers are checked by contribution CI; they do not verify the cryptographic signature.

Release signing lists the publication secrets, trusted public keys, and key recovery procedure.