feat: auto-cascade main → dev workflow #9

Merged
jmiller merged 1 commits from feat/cascade-dev-workflow into main 2026-05-05 20:38:58 +00:00
Owner

Summary

  • New cascade-dev.yml workflow that forward-merges main into dev after every push
  • Uses Gitea API merge endpoint (no repo checkout needed)
  • On merge conflict: auto-creates a PR for manual resolution
  • Duplicate PR prevention — won't create a second cascade PR if one is already open
  • Supports [skip cascade] in commit messages to opt out
  • Added cascade workflow to ntfy notification triggers

How it works

Push to main
    ↓
Check if dev branch exists
    ↓
API merge (main → dev)
    ├─ 200/201 → Success ✅
    ├─ 204 → Already up to date ✅
    ├─ 409 → Conflict → Create PR for manual resolution
    └─ Other → Fail with error

Cross-repo rollout

This workflow is designed as a standard template for all repos. After merge, add to MokoStandards-API as /templates/workflows/cascade-dev.yml.template.

Test plan

  • Merge this PR → workflow should trigger and cascade into dev
  • Verify dev branch SHA matches main after cascade
  • Test [skip cascade] by pushing a commit with that tag
  • Test conflict scenario: make a conflicting change on dev, push to main, verify PR is auto-created
  • Verify ntfy notification fires on cascade failure

🤖 Generated with Claude Code

## Summary - New `cascade-dev.yml` workflow that forward-merges `main` into `dev` after every push - Uses Gitea API merge endpoint (no repo checkout needed) - On merge conflict: auto-creates a PR for manual resolution - Duplicate PR prevention — won't create a second cascade PR if one is already open - Supports `[skip cascade]` in commit messages to opt out - Added cascade workflow to ntfy notification triggers ## How it works ``` Push to main ↓ Check if dev branch exists ↓ API merge (main → dev) ├─ 200/201 → Success ✅ ├─ 204 → Already up to date ✅ ├─ 409 → Conflict → Create PR for manual resolution └─ Other → Fail with error ``` ## Cross-repo rollout This workflow is designed as a standard template for all repos. After merge, add to MokoStandards-API as `/templates/workflows/cascade-dev.yml.template`. ## Test plan - [ ] Merge this PR → workflow should trigger and cascade into dev - [ ] Verify dev branch SHA matches main after cascade - [ ] Test `[skip cascade]` by pushing a commit with that tag - [ ] Test conflict scenario: make a conflicting change on dev, push to main, verify PR is auto-created - [ ] Verify ntfy notification fires on cascade failure 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jmiller added 1 commit 2026-05-05 20:38:50 +00:00
feat: auto-cascade main → dev workflow
Repo Health / Access control (push) Successful in 0s
Joomla Extension CI / Release Readiness Check (pull_request) Successful in 2s
PR Check / Validate PR (pull_request) Successful in 4s
Repo Health / Access control (pull_request) Successful in 0s
Repo Health / Release configuration (push) Failing after 2s
Repo Health / Scripts governance (push) Successful in 3s
Repo Health / Repository health (push) Failing after 3s
Repo Health / Release configuration (pull_request) Failing after 2s
Repo Health / Scripts governance (pull_request) Successful in 3s
Repo Health / Repository health (pull_request) Failing after 3s
Joomla Extension CI / Lint & Validate (pull_request) Failing after 43s
Joomla Extension CI / Tests (PHP 8.2) (pull_request) Has been skipped
Joomla Extension CI / Tests (PHP 8.3) (pull_request) Has been skipped
515290798f
Adds cascade-dev.yml that forward-merges main into dev after every push.
Uses Gitea API merge endpoint — no repo checkout needed. On conflict,
auto-creates a PR for manual resolution with duplicate prevention.
Adds cascade workflow to ntfy notifications.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller merged commit 0fc21c58f3 into main 2026-05-05 20:38:58 +00:00
jmiller deleted branch feat/cascade-dev-workflow 2026-05-05 20:38: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#9