Skip to content

Commit b78ccd0

Browse files
committed
Infra: 자동화 워크플로우 수정
- PR-auto-lablel-project 제거 (Projects에 중복되는 항목이 발생) - PR 제목에 이미 (#숫자) 패턴이 존재한다면 PR 제목이 수정되는 작업 방지
1 parent e1f29fe commit b78ccd0

File tree

2 files changed

+7
-77
lines changed

2 files changed

+7
-77
lines changed

.github/workflows/pr-auto-label-project.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/pr-auto-title.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
1616
const pr = context.payload.pull_request;
1717
const branch = pr.head.ref;
1818
19+
// 제목에 이미 (#숫자) 패턴이 있는지 먼저 확인
20+
const hasIssueTag = /\(#\d+\)$/.test(pr.title);
21+
if (hasIssueTag) {
22+
console.log(`✅ PR title already has issue tag, skipping update`);
23+
return;
24+
}
25+
1926
// 브랜치 명에서 숫자 추출
2027
const issueMatch = branch.match(/(\d+)/);
2128

0 commit comments

Comments
 (0)