Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/auto-create-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,19 @@ jobs:
const body = issue.body || '';
const labels = (issue.labels || []).map(l => l.name.toLowerCase());

// 1) type 결정 (우선순위: hotfix > release > refactor > fix > chore > feat)
// 1) type 결정 (우선순위: hotfix > release > refactor > fix > setting > chore > feat)
// 라벨이 없거나 적용되지 않은 경우 이슈 템플릿 제목([Refactor]: 등)을 fallback으로 사용한다.
const title = issue.title || '';
const titleTypeMatch = title.match(/^\[(hotfix|release|refactor|fix|setting|chore|feat)\]\s*:/i);

let type = 'feat';
if (labels.includes('hotfix')) type = 'hotfix';
else if (labels.includes('release')) type = 'release';
else if (labels.includes('refactor')) type = 'refactor';
else if (labels.includes('fix')) type = 'fix';
else if (labels.includes('setting')) type = 'setting';
else if (labels.includes('chore')) type = 'chore';
else if (titleTypeMatch) type = titleTypeMatch[1].toLowerCase();

// 2) 이슈 폼에서 Branch Keyword 추출 (### Branch Keyword 다음 줄)
const m = body.match(/###\s*Branch Keyword\s*\n([^\n]+)/i);
Expand Down
Loading