feat: add blog draft CI — label enforcement + Kiro CLI headless generation#65
Merged
okamoto-aws merged 6 commits intomainfrom Apr 14, 2026
Merged
feat: add blog draft CI — label enforcement + Kiro CLI headless generation#65okamoto-aws merged 6 commits intomainfrom
okamoto-aws merged 6 commits intomainfrom
Conversation
…ation - require-blog-label.yml: PRs must have blog:pending or blog:skip label before merge. Bot PRs get blog:skip automatically. - blog-draft.yml: workflow_dispatch with PR numbers input. Collects PR diffs, generates Zenn blog draft via Kiro CLI headless, pushes to okamoto-aws/zenn-blog as sdpm/prXX-YY-ZZ-<slug> branch, creates PR to publish branch, labels source PRs as blog:done, notifies Slack. Required secrets: KIRO_API_KEY, BLOG_REPO_TOKEN, SLACK_WEBHOOK_URL
added 5 commits
April 15, 2026 00:50
Move blog writing prompt to okamoto-aws/zenn-blog/instruction.md (private) so it's not visible in the public SDPM repo. The workflow clones zenn-blog early and reads instruction.md before calling Kiro CLI.
- Move all ${{ github.* }} and ${{ inputs.* }} to env: variables
- Add checkov:skip for CKV_GHA_7 (workflow_dispatch inputs required)
- Check SLACK_WEBHOOK_URL emptiness in shell instead of expression
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
PRマージ時のブログラベル必須化と、Kiro CLI headless によるブログドラフト自動生成ワークフロー。
Changes
.github/workflows/require-blog-label.ymlblog:pendingまたはblog:skipラベルがないとマージ不可blog:skipを付与.github/workflows/blog-draft.ymlworkflow_dispatchで PR 番号をカンマ区切りで入力blog:doneラベルを付与Required Secrets
KIRO_API_KEY— Kiro CLI headless 認証BLOG_REPO_TOKEN— ブログリポジトリへの push 用 Fine-grained PATSLACK_WEBHOOK_URL— Slack 通知用