fix: cascade workflow — use PR-based merge for Gitea #10

Merged
jmiller merged 1 commits from fix/cascade-dev-gitea-api into main 2026-05-05 20:43:58 +00:00
Owner

Summary

  • Fixes the cascade workflow that failed because Gitea has no POST /repos/{owner}/{repo}/merges endpoint
  • Rewrites to a 3-step approach: compare → create PR → auto-merge
  • On conflict: PR stays open for manual resolution (same UX as before)

How it works now

Push to main
    ↓
Check if dev branch exists
    ↓
Compare main vs dev (skip if already in sync)
    ↓
Create PR (main → dev) — reuses existing if one is open
    ↓
Auto-merge if mergeable
    ├─ Clean → Merged ✅
    └─ Conflicts → PR left open for manual resolution ⚠️

Test plan

  • Merge this PR → cascade workflow triggers and merges main into dev
  • Verify dev branch updates to include main's commits
  • Verify the cascade PR is auto-closed after merge

🤖 Generated with Claude Code

## Summary - Fixes the cascade workflow that failed because Gitea has no `POST /repos/{owner}/{repo}/merges` endpoint - Rewrites to a 3-step approach: compare → create PR → auto-merge - On conflict: PR stays open for manual resolution (same UX as before) ## How it works now ``` Push to main ↓ Check if dev branch exists ↓ Compare main vs dev (skip if already in sync) ↓ Create PR (main → dev) — reuses existing if one is open ↓ Auto-merge if mergeable ├─ Clean → Merged ✅ └─ Conflicts → PR left open for manual resolution ⚠️ ``` ## Test plan - [ ] Merge this PR → cascade workflow triggers and merges main into dev - [ ] Verify dev branch updates to include main's commits - [ ] Verify the cascade PR is auto-closed after merge 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jmiller added 1 commit 2026-05-05 20:43:51 +00:00
fix: use PR create+merge for cascade (Gitea has no direct merge API)
Repo Health / Access control (push) Successful in 1s
Repo Health / Release configuration (push) Failing after 2s
Repo Health / Scripts governance (push) Successful in 2s
Repo Health / Repository health (push) Failing after 3s
Joomla Extension CI / Release Readiness Check (pull_request) Successful in 3s
Repo Health / Access control (pull_request) Successful in 1s
Repo Health / Release configuration (pull_request) Failing after 3s
Repo Health / Scripts governance (pull_request) Successful in 3s
Repo Health / Repository health (pull_request) Failing after 3s
PR Check / Validate PR (pull_request) Successful in 20s
Joomla Extension CI / Lint & Validate (pull_request) Failing after 44s
Joomla Extension CI / Tests (PHP 8.2) (pull_request) Has been skipped
Joomla Extension CI / Tests (PHP 8.3) (pull_request) Has been skipped
5d0040b886
Gitea doesn't support POST /repos/{owner}/{repo}/merges. Rewrites the
cascade workflow to: compare branches, create a PR (main → dev), then
auto-merge if clean. On conflict the PR stays open for manual resolution.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller merged commit 35e13f6258 into main 2026-05-05 20:43:58 +00:00
jmiller deleted branch fix/cascade-dev-gitea-api 2026-05-05 20:43:58 +00:00
Sign in to join this conversation.
No Reviewers
No labels
Type
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoOnyx#10