ci: add merge-back workflow from main to develop #1
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ComputerCrack/Netoskur!1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/netoskur-q5b-merge-back-workflow"
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
New workflow
.gitea/workflows/sync-develop.yml, triggered by every push tomain:Merge commit is created and signed by the Forgejo instance. Adapted from Portfolio
sync-dev.ymlwith one change: existing-PR lookup by base/head instead of "first open PR".Refs: Netoskur-q5b
Evidence
mainwould have to be brought todevelopby 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).SYNC_TOKENis set (not yet, see ticket).Merge Danger
Door: two-way
Deleting the file disables it.
Blast Radius: develop
A wrong merge lands on
developonly;mainis never written. WithoutSYNC_TOKENthe job fails red and does nothing.