wing-ops/.claude/tmp-create-mr.mjs
leedano 9e51651fc7 Merge remote-tracking branch 'origin/develop' into feature/design-system-refactoring
# Conflicts:
#	docs/RELEASE-NOTES.md
#	frontend/src/common/components/map/MapView.tsx
#	frontend/src/tabs/incidents/components/DischargeZonePanel.tsx
#	frontend/src/tabs/incidents/components/IncidentsView.tsx
2026-04-07 18:02:57 +09:00

53 lines
1.5 KiB
JavaScript

import https from 'https';
const token = process.env.GITEA_TOKEN;
if (!token) { console.error('NO_TOKEN'); process.exit(1); }
const body = {
title: 'feat(design): 디자인 시스템 토큰 적용 및 Float 카탈로그 추가',
body: `## 변경 사항
- 디자인 시스템 Float 카탈로그 추가 (Modal / Dropdown / Overlay / Toast)
- 디자인 시스템 폰트/색상 토큰을 전 탭 컴포넌트(admin, aerial, assets, board, hns, incidents, prediction, reports, rescue, scat, weather)에 전면 적용
- 릴리즈 노트 업데이트
## 관련 이슈
- (없음)
## 테스트
- [x] TypeScript 타입 체크 통과 (pre-commit)
- [x] ESLint 통과 (pre-commit)
- [ ] 기존 기능 동작 확인
`,
head: 'feature/design-system-refactoring',
base: 'develop',
};
const data = JSON.stringify(body);
const req = https.request({
hostname: 'gitea.gc-si.dev',
path: '/api/v1/repos/gc/wing-ops/pulls',
method: 'POST',
headers: {
'Authorization': `token ${token}`,
'Content-Type': 'application/json',
'Content-Length': Buffer.byteLength(data),
},
}, (res) => {
let buf = '';
res.on('data', (c) => buf += c);
res.on('end', () => {
if (res.statusCode >= 200 && res.statusCode < 300) {
const pr = JSON.parse(buf);
console.log(`PR_NUMBER=${pr.number}`);
console.log(`PR_URL=${pr.html_url}`);
} else {
console.error(`STATUS=${res.statusCode}`);
console.error(buf);
process.exit(1);
}
});
});
req.on('error', (e) => { console.error(e); process.exit(1); });
req.write(data);
req.end();