简体中文 | English
Thank you for contributing to EdgeEver. A Fork used for Cloudflare deployment can also be used for code contributions, but deployment and development must use different branches.
If your Fork is used to deploy EdgeEver:
- Treat the Fork's
mainas a deployment-only branch managed by Update deployed EdgeEver. - Do not develop features directly on that
mainbranch. - Do not use GitHub Sync fork to update the deployment
mainduring routine development or deployment updates. - Create each contribution branch directly from the official repository's latest
upstream/main.
The deployment workflow only updates the Fork's main. It does not modify your contribution branches.
Clone your Fork and add the official repository as upstream:
git clone https://github.com/<your-account>/edgeever.git
cd edgeever
git remote add upstream https://github.com/tianma-if/edgeever.git
git fetch upstreamCreate a new branch from the official latest main, not from the deployment branch:
git switch -c feat/short-description upstream/mainMake and commit your changes, then push the contribution branch to your Fork:
git push -u origin feat/short-descriptionOpen a Pull Request from:
<your-account>/edgeever:feat/short-description
-> tianma-if/edgeever:main
Your Fork's main does not need to match the official main for this Pull Request. GitHub uses the contribution branch as the Pull Request source.
When the official repository changes, update the contribution branch without touching the deployment main:
git fetch upstream
git switch feat/short-description
git rebase upstream/mainIf the branch was already pushed, update it safely with:
git push --force-with-lease origin feat/short-descriptionResolve any conflicts on the contribution branch. Do not resolve them by synchronizing the deployment main.
Install dependencies and run the checks relevant to your change. The core validation commands are:
bun install
bun run test
bun run typecheck
bun run typecheck:mobile
bun run build:webPlatform-specific changes may require additional checks.
Keeping personal product changes permanently on the deployed main is a customized deployment, not the normal contribution workflow. Customized deployments must opt in with EDGE_EVER_PRESERVE_FORK_CHANGES=true and maintain their own upstream merges. You do not need this setting when contributing through a separate branch.