feat(today): today.md 일일 신규 콘텐츠 자동 로그#12
Merged
Merged
Conversation
매일 03:30 KST GitHub Actions cron 으로 today.md 자동 갱신.
운영자가 "오늘 새로 생긴 내용" 을 한눈에 확인 가능.
신설:
- scripts/generate-today.mjs (+ .d.mts) — git log --diff-filter=A 로 24h 내
src/app/{guide,calculator}/*/page.tsx 추가분 식별 → metadata.title +
description 정규식 추출 → today.md 의 오늘 날짜 섹션에 머지·prepend.
idempotent (중복 URL 자동 제외).
- tests/unit/scripts/generate-today.test.ts — 16 cases (todayKst /
extractPageMeta / summarize / pathToEntry / mergeIntoTodayMd).
- .github/workflows/today-update.yml — 매일 03:30 KST + workflow_dispatch.
contents:write 권한으로 main 직접 commit·push. 변경 없으면 noop.
- today.md — 초기 생성 (오늘 섹션, '신규 발행분 없음').
- npm run generate:today / :dry — 로컬 수동 실행.
검증:
- typecheck PASS · lint PASS
- 로컬 dry-run / 실 실행 모두 정상
운영자 액션: 본 PR 머지 시 다음 03:30 KST 부터 자동 갱신 시작.
PR #11 (자동 생성 가이드) 머지 후 다음 cron 실행 시 today.md 에 첫 항목 등재 예상.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Deploying calculatorhost with
|
| Latest commit: |
63247d7
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fba6b7ad.calculatorhost.pages.dev |
| Branch Preview URL: | https://feat-today-md.calculatorhost.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
매일 03:30 KST GitHub Actions cron 으로
today.md자동 갱신. 운영자가 "오늘 새로 생긴 내용" 을 한눈에 확인 가능.신설 파일
scripts/generate-today.mjs(+.d.mts) — git log--diff-filter=A로 24h 내src/app/{guide,calculator}/*/page.tsx추가분 식별 → metadata.title + description 정규식 추출 → today.md 의 오늘 날짜 섹션에 머지·prepend. 중복 URL 자동 제외 (idempotent).tests/unit/scripts/generate-today.test.ts— 16 cases.github/workflows/today-update.yml— 매일 03:30 KST + workflow_dispatch. main 직접 commit·push.today.md— 초기 생성변경
package.json—npm run generate:today/:dry검증
운영자 액션
본 PR 머지 시 다음 03:30 KST 부터 자동 갱신 시작. PR #11 (자동 생성 가이드) 머지 시 다음 cron 에서 today.md 에 첫 항목 등재 예상.
🤖 Generated with Claude Code