Problem to Fix
After a pull request is merged into the main branch, the dev branch falls behind because it doesn't contain the merge commits that GitHub creates. This requires a manual step to bring dev back in sync with main after every deployment.
Why it Matters
Developers starting new work from dev may be working from a branch that doesn't match what was just deployed. The manual sync step is easy to forget, leading to confusion and potential merge conflicts down the line.
General Approach
Add a GitHub Actions workflow that automatically fast-forwards dev to match main whenever main receives a push (i.e. after a PR merge). If a fast-forward isn't possible because dev has diverged, the workflow will open an issue to alert the team rather than silently forcing a merge.
Complexity
Verification / QA effort: moderate
The workflow needs to be tested in a real PR merge scenario to confirm it triggers correctly and pushes the updated dev branch.
Acceptance Criteria
- After merging a PR into main, the dev branch is automatically updated to match main within minutes
- If dev has diverged and cannot be fast-forwarded, an issue is opened to alert the team
- No manual intervention is required for the normal case (fast-forward succeeds)
Problem to Fix
After a pull request is merged into the main branch, the dev branch falls behind because it doesn't contain the merge commits that GitHub creates. This requires a manual step to bring dev back in sync with main after every deployment.
Why it Matters
Developers starting new work from dev may be working from a branch that doesn't match what was just deployed. The manual sync step is easy to forget, leading to confusion and potential merge conflicts down the line.
General Approach
Add a GitHub Actions workflow that automatically fast-forwards dev to match main whenever main receives a push (i.e. after a PR merge). If a fast-forward isn't possible because dev has diverged, the workflow will open an issue to alert the team rather than silently forcing a merge.
Complexity
Verification / QA effort: moderate
The workflow needs to be tested in a real PR merge scenario to confirm it triggers correctly and pushes the updated dev branch.
Acceptance Criteria