This repository uses a release branch plus integration branch model.
masteris the released App Store / Google Play line.developis the integration and experiment line.- Feature branches are created from
develop. - Release tags are created from
master. - Hotfixes may start from
master, but must be brought back intodevelop.
master must represent the latest released or review-submitted state.
Use it for:
- App Store / Google Play review builds.
- Release tags.
- Compliance hotfixes.
- GitHub Pages published content.
Do not land experimental features directly into master.
develop is the normal integration branch.
Use it for:
- Feature PR targets.
- Experimental providers and UI work.
- Integration testing before a release train moves to
master.
Do not configure GitHub Pages to deploy from develop.
Create feature branches from develop:
git fetch origin
git switch develop
git pull --ff-only
git switch -c feature/my-featureFeature PRs target develop.
Feature PRs may be squash-merged into develop. This keeps the integration branch readable and makes generated documentation conflicts easier to replace with one final generated output.
Use --force-with-lease, not plain --force, when refreshing a feature branch after a rebase:
git push --force-with-lease origin feature/my-featureAfter moving develop to master, Update Dokka refreshes the released API
reference. Documentation generation does not run automatically on develop.
Expected release preparation:
- Merge the planned feature PRs into
develop. - Run release validation from
develop. - Fast-forward
masterfromdevelop. - Tag the release from
master. - Let Update Dokka refresh
master, or run it manually onmasterto check immediately.
When master and develop still have the same full commit SHA and 0/0 divergence,
Update Dokka advances both to one shared documentation commit. If they differ,
only master receives the update. The optional develop update never blocks
publication on an unchanged master source commit.
The release merge from develop to master must preserve commit object IDs. Do not use GitHub's PR merge buttons for develop -> master.
GitHub's merge UI can create new server-side commits or rewrite commits depending on the selected merge strategy:
- Squash merge creates a new commit.
- Rebase merge creates new commits with new object IDs.
- Merge commit preserves the commits being merged, but creates a GitHub-generated merge commit and makes the branch tips differ.
For this project, the release goal is stricter: the commits that are in develop should appear in master with the same object IDs. Use a local fast-forward release.
git fetch origin
git switch master
git pull --ff-only origin master
git merge --ff-only origin/develop
git push origin masterAfter the push, tag the release from master:
git tag vX.Y.Z
git push origin vX.Y.ZIf git merge --ff-only origin/develop fails, master and develop have diverged. Do not use GitHub UI to solve it. First sync the master-only commits back into develop.
git switch develop
git pull --ff-only origin develop
git merge --no-ff origin/master
git push origin developThen retry the fast-forward release from develop to master.
Hotfixes start from master when the release or review-submitted app needs a compliance, store, or production fix.
git fetch origin
git switch master
git pull --ff-only origin master
git switch -c hotfix/compliance-fixAfter review and validation, land the hotfix into master with a local fast-forward whenever possible:
git switch master
git pull --ff-only origin master
git merge --ff-only hotfix/compliance-fix
git push origin masterThen sync the hotfix back into develop without rewriting it:
git switch develop
git pull --ff-only origin develop
git merge --no-ff origin/master
git push origin developThis preserves the hotfix commit object ID and makes the next release fast-forwardable.
GitHub Pages must never deploy from develop.
The allowed Pages source is the released line:
- GitHub Pages source:
master/docs. - If a Pages workflow is added later, restrict it to
masteror release tags only. - Do not add
developto any Pages deployment trigger.
Allowed workflow trigger shape:
on:
push:
branches: [master]If manual deployment is added, the job must still guard against develop:
if: github.ref == 'refs/heads/master'Update Dokka generates and publishes from master only. It also fast-forwards
develop to the same documentation commit when both branches are exactly aligned.
Generated Dokka output lives under docs/docs.
Feature work should leave docs/docs generation to the automated workflow after
the release fast-forward to master. Manual Update Dokka runs are restricted
to master.
Preferred feature shape:
- Implementation commits.
- Manual docs or README updates when they are part of the feature.
- No generated Dokka commit.
Feature PR CI may run Dokka as a validation step, but the generated output should stay as a CI artifact or temporary local output, not as committed source.
Update Dokka checks master after pushes and batches them with a 5-minute quiet
period. It generates only when
source or build inputs differ from the last successful documentation build,
then commits to master. Exactly aligned
develop receives the same commit through an atomic fast-forward; otherwise it
is left untouched. Manual runs on master check immediately. See
Documentation Workflow for
credentials, controls and local generation.
If an old feature branch already contains a generated Dokka commit, drop or skip that commit while rebasing onto develop:
git fetch origin
git switch feature/old-feature
git rebase origin/developIf the rebase conflicts only in the stale Dokka commit:
git rebase --skip
git push --force-with-lease origin feature/old-featureIf the rebase has source conflicts, resolve source code first. Do not hand-edit generated Dokka HTML to resolve semantic API conflicts.
Root-level Markdown files are part of the public project documentation surface.
README.md must link to every other root-level .md document so users and contributors can discover repository policies and manuals from one place.
When adding, removing, or renaming a root-level .md file:
- Update the root documentation section in
README.md. - Keep the link text human-readable.
- Do not include generated documentation output in this rule; it applies only to root-level Markdown files committed by maintainers.
At the time this workflow was introduced, two feature branches were already based on master:
feature/new-functionality-Afeature/new-functionality-B
Both were created before the release-only Dokka rule. If either branch contains generated Dokka updates under docs/docs, drop or replace those generated docs during rebase and let the release Dokka PR regenerate them once after feature integration.
Recommended order:
- Rebase both branches onto
develop. - Remove generated Dokka changes from the feature branches.
- Open both PRs against
develop. - Merge both PRs into
develop. - Run the normal smoke tests.
- Fast-forward
masterfromdevelopfor the next release. - Let Update Dokka refresh
masterand share the commit with aligneddevelop.