Skip to content

[setting] #261 - 자동 라벨 워크플로의 반복 라벨 변경 알림 줄이기 - #262

Merged
laura-jung merged 3 commits into
developfrom
setting/#261-auto-label-noise
Nov 12, 2026
Merged

laura-jung merged 3 commits into
developfrom
setting/#261-auto-label-noise

Conversation

@laura-jung

@laura-jung laura-jung commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

관련 이슈 🛠

작업 내용 요약 ✏️

자동 라벨 워크플로가 실행될 때마다 라벨을 모두 제거했다가 다시 추가해, 라벨이 바뀌지 않아도 알림이 반복적으로 발생했습니다. 바뀐 라벨만 수정하도록 바꾸고, 담당자 자동 지정과 라벨 이름 정리를 함께 반영했습니다.

주요 변경 사항 🛠️

  • [알림 줄이기]: 현재 라벨과 기대 라벨을 비교해 없어진 라벨만 제거하고 빠진 라벨만 추가하도록 변경했습니다.
  • [트리거 정리]: PR 푸시(synchronize) 트리거를 제거하고, edited 이벤트는 제목이 바뀐 경우에만 실행하도록 했습니다.
  • [담당자 자동 지정]: 이슈·PR이 처음 열릴 때 담당자가 없으면 작성자를 담당자로 지정합니다. 봇 작성자는 제외합니다.
  • [라벨 이름 정리]: 워크플로의 라벨 이름을 저장소 라벨과 일치시켰습니다(📁 docs, ↩️ remove, 🍀 윤아).
  • [deploy 라벨]: 제목에 [deploy]가 있으면 💻 deploy 라벨을 추가합니다.

트러블 슈팅 ⚽️

  • 기존 워크플로의 📃 docs, ♻️ remove, 🍀️ 윤아는 저장소 라벨과 이모지 문자가 달라 실제 라벨과 정확히 일치하지 않았습니다.
  • pull_request_target·issues 이벤트는 기본 브랜치(develop)의 워크플로를 실행하므로, 이 PR 자체에는 기존 워크플로가 적용됩니다. 변경 사항은 머지 후부터 적용됩니다.
  • 💻 deploy가 관리 라벨이 되었으므로, 제목에 [deploy]가 없는 이슈·PR에 수동으로 붙인 💻 deploy 라벨은 제목 수정 시 제거됩니다.

테스트 결과 📄

  • 각 커밋 시점의 워크플로에 대해 YAML 파싱과 스크립트 문법 검사(node --check)를 통과했습니다.
  • git diff --check를 통과했습니다.
  • 가짜 GitHub 클라이언트로 스크립트를 실행해 확인했습니다.
    • 라벨이 이미 맞는 경우: API 호출 없음
    • 제목 [refactor] → [fix]: 🔁 refactor 제거, 🛠️ fix 추가만 호출
    • 담당자 없이 새로 열림: 라벨 추가와 작성자 담당자 지정
    • 담당자가 있거나 봇이 연 경우: 담당자 지정 안 함
    • [deploy]: 💻 deploy 추가
  • 실제 GitHub 동작은 머지 후 새 이슈·PR로 확인이 필요합니다.

스크린샷 📷

없음

리뷰 요구사항 📢

  • 저장소에 🧪 test/🧑🏻‍🔬 test, 🔁 refactor/🔄 refactor가 중복으로 있습니다. 워크플로는 최근 이슈에서 쓰는 🧪·🔁를 사용하는데, 나머지 라벨을 정리할지 의견 부탁드립니다.

Summary by CodeRabbit

  • 개선 사항
    • 이슈 제목을 수정한 경우 제목이 실제로 변경되었을 때만 자동화가 실행됩니다.
    • deploy 제목 규칙이 추가되었으며, 문서 및 작성자 라벨의 이모지가 변경되었습니다.
    • 라벨을 갱신할 때 계산 결과에 없는 관리 대상 라벨만 제거하고, 새 라벨이 있는 경우에만 추가합니다.
    • 이슈가 생성될 때 담당자가 없고 작성자가 봇이 아니면 작성자가 담당자로 지정됩니다.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

자동 라벨 워크플로의 이벤트 조건과 라벨 규칙을 변경합니다. 현재 라벨과 계산된 라벨을 비교해 필요한 변경만 적용하고, 조건에 따라 PR 작성자를 담당자로 지정합니다.

Changes

자동 라벨 워크플로

Layer / File(s) Summary
이벤트 조건과 라벨 규칙
.github/workflows/auto-label.yml
synchronize 이벤트를 제거하고 reopened 이벤트를 추가합니다. edited 이벤트는 제목이 변경된 경우에만 라벨 작업을 실행합니다. 라벨 이모지를 변경하고 deploy 제목 규칙을 추가합니다.
라벨 동기화와 담당자 지정
.github/workflows/auto-label.yml
계산된 라벨에 없는 관리 라벨만 제거하고, 현재 라벨에 없는 계산 라벨만 추가합니다. 계산된 라벨이 있을 때만 추가 API를 호출합니다. opened 이벤트에서 담당자가 없고 작성자가 봇이 아니면 작성자를 담당자로 지정합니다.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: aneykrap, jy000n

Merge Risk: Minimal · up to b55a0

The workflow updates only changed labels and attempts to assign authors on opening. No concrete merge-blocking risk remains.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 제목은 자동 라벨 워크플로의 반복 라벨 변경 알림을 줄이는 주요 변경 사항을 정확하게 설명합니다.
Linked Issues check Passed 직접 연결된 활성 이슈 #261의 코딩 요구사항을 모두 확인했습니다. .github/workflows/auto-label.yml은 현재 라벨과 기대 라벨의 차이만 제거·추가합니다. pull_request_target에서 synchronize를 제거합니다. edited 이벤트는 제목 변경 시에만 작업을 실행합니다. opened 이벤트에서 담…
Out of Scope Changes check Passed 변경 사항은 모두 이슈 #261의 자동 라벨 및 담당자 지정 동작과 직접 연결됩니다. 라벨 비교 로직, 이벤트 조건, 라벨 이름 수정, deploy 규칙, 담당자 지정 로직은 해당 요구사항의 구현에 필요합니다. 확인된 무관한 변경은 없습니다.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Linked Issues check

Explanation

직접 연결된 활성 이슈 #261의 코딩 요구사항을 모두 확인했습니다. .github/workflows/auto-label.yml은 현재 라벨과 기대 라벨의 차이만 제거·추가합니다. pull_request_target에서 synchronize를 제거합니다. edited 이벤트는 제목 변경 시에만 작업을 실행합니다. opened 이벤트에서 담당자가 없고 작성자가 봇이 아니면 작성자를 담당자로 지정합니다. 📁 docs, ↩️ remove, 🍀 윤아를 사용하고 [deploy] 또는 deploy: 제목에 💻 deploy를 추가합니다.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4f0027e and b55a0e7.

Files selected for processing: 1

  • .github/workflows/auto-label.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@aneykrap aneykrap left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 요구사항에 남겨주신 중복 라벨(🧑🏻‍🔬 test, 🔄 refactor)은 일단 그대로 둬도 될 것 같아요. 직접 붙이지만 않으면 문제 될 일이 거의 없을 것 같아서 나중에 헷갈리는 일이 생기면 그때 정리해도 괜찮을 것 같습니당

고생하셨어요 감사합니다!

@Jy000n Jy000n left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다! 바뀐 라벨만 비교해서 추가/제거하는 방식 깔끔하네용 👍

중복 라벨은 저도 이번 PR에서는 그대로 두는 데에 동의합니다! 예나 언니 의견처럼 나중에 헷갈릴 때 워크플로에서 안 쓰는 쪽만 정리하면 수동으로 잘못 붙는 일도 없을 것 같습니당

@github-actions github-actions Bot added the slack-approval-notified Slack 승인 완료 알림 중복 방지용 라벨 label Nov 11, 2026
@laura-jung
laura-jung merged commit c457568 into develop Nov 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ setting slack-approval-notified Slack 승인 완료 알림 중복 방지용 라벨 🍀 윤아

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[setting] 자동 라벨 워크플로의 반복 라벨 변경 알림 줄이기

3 participants