chore(release): v0.1.0 #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
First release from
developtomain.Merge with merge commit (not squash), then tag
v0.1.0(annotated, signed) on the merge commit.Evidence
sync-develop.ymlhas never run.After: this merge is a push to
mainand triggers it. Expected: PRmain->developopened and merged automatically, merge commit signed by the instance.Merge Danger
Door: two-way
Only CI configuration is added; reverting the merge removes it.
Blast Radius: develop
The triggered merge-back writes to
develop.## Summary New workflow `.gitea/workflows/sync-develop.yml`, triggered by every push to `main`: ```text on(push main) open PR main -> develop (201 new | 409 reuse existing | 422 nothing to merge -> exit green) look up existing PR by base/head (GET /pulls/develop/main, not "first open PR") approve PR via API (develop requires 1 approval) merge PR via API (Do: merge) (retry while 405 "not mergeable yet") on any other failure -> exit red, PR stays open for a human ``` Merge commit is created and signed by the Forgejo instance. Adapted from Portfolio `sync-dev.yml` with two changes: approval step added, existing-PR lookup fixed. Refs: Netoskur-q5b ## Evidence - **Before:** no merge-back; hotfixes on `main` would have to be brought to `develop` by hand. **After:** not yet verified. The workflow only runs on a push to `main`, so the first real run is the first release or hotfix. YAML parses; no comments in the file. Open assumptions: - `GET /repos/{owner}/{repo}/pulls/{base}/{head}` exists in this Forgejo version (known from the Gitea API). - Repo secret `SYNC_TOKEN` is set (not yet, see ticket). ## Merge Danger **Door:** two-way Deleting the file disables it. **Blast Radius:** develop A wrong merge lands on `develop` only; `main` is never written. Without `SYNC_TOKEN` the job fails red and does nothing. Reviewed-on: #1Resolution: finding 1 (approval step), plus findings 3, 4, 5 and the 422 handling, were fixed in PR #3 before this PR was merged. The 422 assumption turned out to be wrong: Forgejo creates an empty PR instead. The workflow now checks the compare API first.