Fix RC flow

This commit is contained in:
acx10
2026-01-22 01:06:14 -07:00
parent cb5f6808f0
commit 6fb8d47da4
2 changed files with 22 additions and 2 deletions

View File

@@ -179,6 +179,26 @@ gh pr merge --squash
- Each merge to `release/1.18` publishes a new RC (`v1.18.0-rc.2`, `rc.3`, etc.) - Each merge to `release/1.18` publishes a new RC (`v1.18.0-rc.2`, `rc.3`, etc.)
- Testers can pull specific RC versions to validate fixes - Testers can pull specific RC versions to validate fixes
**Recommended: Keep `develop` in sync**
To avoid `develop` having stale/buggy code until the release completes, create PRs targeting both branches:
```bash
git checkout release/1.18
git checkout -b fix/critical-bug
# ... make fixes ...
git commit -m "Fix critical bug in authentication"
git push -u origin fix/critical-bug
# Create PR for release branch
gh pr create --base release/1.18 --title "Fix critical bug"
# Create PR for develop (same branch, different target)
gh pr create --base develop --title "Fix critical bug"
```
Both PRs can be reviewed and merged independently. When `master` is merged back to `develop` in Phase 5, Git will recognize the identical changes and resolve cleanly.
--- ---
### Phase 3: Merge to Master ### Phase 3: Merge to Master

View File

@@ -246,8 +246,8 @@ jobs:
rc_number=$(git rev-list --count HEAD 2>/dev/null || echo "1") rc_number=$(git rev-list --count HEAD 2>/dev/null || echo "1")
fi fi
# Ensure RC number is at least 1 # Convert commit count to RC number (0 commits = rc.1, 1 commit = rc.2, etc.)
rc_number=$((rc_number > 0 ? rc_number : 1)) rc_number=$((rc_number + 1))
rc_tag="v${full_version}-rc.${rc_number}" rc_tag="v${full_version}-rc.${rc_number}"
short_sha=$(git rev-parse --short HEAD) short_sha=$(git rev-parse --short HEAD)