Skip to content

Commit 35e2a81

Browse files
authored
Update update_readme_calendar.py
1 parent ffd3c00 commit 35e2a81

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

scripts/update_readme_calendar.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,14 @@ def build_month_calendar(year, month, today_kst):
184184

185185
# 3) 색상 결정
186186
if not has_nonbot:
187-
dot = DOT_RED # 비봇 커밋 없음 → 빨강, n=0
187+
dot = DOT_RED # 비봇 커밋 없음 → 빨강
188188
n = 0
189+
elif today_nonbot_cnt >= GOAL_M or today_file_cnt >= GOAL_M:
190+
dot = DOT_GREEN # 커밋 1개 이상 + 파일 ≥ 목표 → 초록
189191
elif n >= GOAL_M:
190-
if today_nonbot_cnt >= GOAL_M or today_file_cnt >= GOAL_M:
191-
dot = DOT_GREEN # 당일 3커밋 이상 + 누적 3개 이상
192-
else:
193-
dot = DOT_ORANGE # 누적 3개 이상, 당일 3커밋 미만(레트로 포함 달성)
192+
dot = DOT_ORANGE # 누적 목표 달성, 당일/과거 파일 부족 → 주황
194193
else:
195-
dot = DOT_YELLOW # 비봇 커밋은 있으나 누적 < 3
194+
dot = DOT_YELLOW # 비봇 커밋은 있으나 누적 < 목표 → 노랑
196195

197196
# 4) 표시 (이름: 🟢 (n/3)) 단순 형식
198197
lines.append(

0 commit comments

Comments
 (0)