fix(cartsnitch/cartsnitch): deploy-dev/deploy-uat checkout ref must match PR base (CAR-1374) #300
Reference in New Issue
Block a user
Delete Branch "barcode-betty/car-1374-checkout-ref-match-base"
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?
Context
CAR-1374 — follow-up to CAR-1371.
CAR-1371 changed the
deploy-devanddeploy-uatjobs in.gitea/workflows/ci.ymlto open image-tag-bump PRs againstbase: dev(orbase: uat) instead ofbase: main. Verification on 2026-06-10 (run cartsnitch/cartsnitch#3506) confirmed the PR base arg is correct, but the auto-opened PR cartsnitch/infra#392 ismergeable: falsebecause the head branch was branched frommain, not fromdev/uat.Root cause
In
deploy-dev(line 482) anddeploy-uat(line 628) jobs, theactions/checkoutstep forcartsnitch/infrahardcodedref: main. The job thencd infra/apps/overlays/{dev,uat}, edits the kustomization, and creates a branch from the working tree. So the head branch lineage wasmain + image-tag-bump, while the PR base wasdev/uat— making the diff everything in main that is not in dev (30+ files in #392).Fix
Parameterize the
refto match the PR base:This makes the head branch lineage match the PR base, so the image-tag-bump PR is a clean single-file diff.
Files changed
.gitea/workflows/ci.yml— 2 lines, deploy-dev (line 487) and deploy-uat (line 633)Verification plan
After merge to dev:
mergeable: trueapps/overlays/dev/kustomization.yamlOut of scope (separate issues)
cc @cpfarhood