Skip to content

Commit 2ce34d1

Browse files
committed
correct branch name
1 parent c4565e7 commit 2ce34d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/generate-changelog.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ async function getChangesetCommits(): Promise<Record<string, string>> {
133133
const fileList = files.split("\n").filter((file) => file.trim());
134134
console.log(`📊 Found ${fileList.length} changeset files:`, fileList);
135135

136-
// 각 파일별로 dev 브랜치에 머지된 commit 찾기
136+
// 각 파일별로 main 브랜치에 머지된 commit 찾기
137137
const commitMap: Record<string, string> = {};
138138
for (const file of fileList) {
139139
// changeset ID 추출 (파일명에서 .md 제거)
140140
const changesetId = file.split("/").pop()?.replace(".md", "") || "";
141141

142-
// Version Packages 커밋을 제외하고 dev 브랜치에 머지된 커밋 찾기
142+
// Version Packages 커밋을 제외하고 main 브랜치에 머지된 커밋 찾기
143143
const commit = await execCommand(
144-
`git log --oneline --first-parent dev -- "${file}" | grep -v "Version Packages" | head -1 | cut -d' ' -f1`,
144+
`git log --oneline --first-parent main -- "${file}" | grep -v "Version Packages" | head -1 | cut -d' ' -f1`,
145145
);
146146

147147
if (commit) {

0 commit comments

Comments
 (0)