Skip to content

fix(publish): swarm PR에 제목 종류로 version:* 라벨 부착 (AGT-4269) - #905

Open
unohee wants to merge 1 commit into
mainfrom
heewonoh/agt-4269-version-label
Open

unohee wants to merge 1 commit into
mainfrom
heewonoh/agt-4269-version-label

Conversation

@unohee

@unohee unohee commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

무엇

  • src/support/publicationVersionLabel.ts 신설: 제목 접두사([CI], fix:, ci(gate): 등, 앞의 이슈 ID는 제거) → version:* 매핑.
    • test/tests/ci/docs/doc/chore → version:skip
    • bug/bugfix/fix/hotfix/perf → version:patch
    • feature/feat → version:minor
    • 그 외(refactor, 접두사 없음, feat!: 같은 breaking)는 라벨 없이 열고 본문 ## Version label 섹션에 사유를 남긴다.
  • commitAndCreatePRWithHead가 gh label list로 저장소에 version:* 라벨이 있는지 먼저 보고, 있을 때만 --label을 붙인다. 없는 저장소는 이전과 동일(알 수 없는 라벨은 gh pr create 자체를 실패시킨다).
  • worktreeManager.ts 줄 수는 그대로(본문 섹션 조립 4줄을 한 줄로 합침, 동작 동일).

왜

2026-09-10 vega-agent의 open swarm PR 5건이 전부 version-label에서 LABELS: []로 실패했다. 기본이 빨간불이면 진짜 실패가 묻힌다.

검증

  • 신규 단위 테스트 25건(제목→라벨 매핑, 모호한 제목, 라벨 없는 저장소) + 통합 테스트 3건(가짜 gh로 pr create 인자 캡처) 통과.
  • npx vitest run src/support 103 files / 1079 passed, 2 skipped. npm run typecheck rc=0, oxlint 0건.
  • 남은 DoD: 배포 후 새 swarm PR 1건이 vega-agent에서 version-label 녹색으로 열리는지 실측. 감사 PR 경로(commitAndCreateAuditPR)와 drainParksCommand는 이번 범위 밖.

…itle kind (AGT-4269)

Repos that define version:* labels (vega-agent gates every PR on exactly one)
now get one label from the title prefix: test/ci/docs/chore -> skip,
bug/fix/perf -> patch, feature/feat -> minor. When the kind does not decide,
the PR opens unlabelled and the body says why. Repos without the labels are
untouched, since gh pr create fails on an unknown label.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant