Skip to content

fix(ci): use PAT only for auto-merge to enable closing keywords - #63

Merged
akiojin merged 4 commits into
mainfrom
develop
Mar 3, 2026
Merged

fix(ci): use PAT only for auto-merge to enable closing keywords#63
akiojin merged 4 commits into
mainfrom
develop

Conversation

@akiojin

@akiojin akiojin commented Mar 3, 2026

Copy link
Copy Markdown
Owner

Summary

Fix auto-merge workflow to use PERSONAL_ACCESS_TOKEN only, without GITHUB_TOKEN fallback. When GITHUB_TOKEN performs the merge, GitHub does not process closing keywords (Closes #N) in PR bodies.

Changes

  • Remove || secrets.GITHUB_TOKEN fallback from auto-merge workflow
  • Skip auto-merge gracefully when PAT is not configured

Closing Issues

Closes #57
Closes #59

Summary by CodeRabbit

リリースノート

  • New Features

    • GitHub自動化スキル(CI修正、Issue分析、PR管理)を追加
    • スキル同期ツールで複数リポジトリからスキルを一元管理可能に
    • PR状態確認機能を実装
    • 包括的なドキュメントと使用例を提供
  • Improvements

    • GitHub認証トークン処理を強化

akiojin added 4 commits March 3, 2026 16:20
GITHUB_TOKEN fallback caused merges to be performed by
github-actions bot, which prevents GitHub from processing
closing keywords (Closes #N) in PR bodies.

Closes #57
Closes #59
@akiojin
akiojin merged commit 5539ac7 into main Mar 3, 2026
21 checks passed
@coderabbitai

coderabbitai Bot commented Mar 3, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between df26f82 and 7e60292.

📒 Files selected for processing (13)
  • .claude-plugin/plugins/unity-cli/skills/gh-skills-sync/SKILL.md
  • .claude/skills/gh-skills-sync
  • .codex/skills/gh-fix-ci/LICENSE.txt
  • .codex/skills/gh-fix-ci/SKILL.md
  • .codex/skills/gh-fix-ci/scripts/inspect_pr_checks.py
  • .codex/skills/gh-fix-issue/SKILL.md
  • .codex/skills/gh-fix-issue/scripts/inspect_issue.py
  • .codex/skills/gh-pr-check/SKILL.md
  • .codex/skills/gh-pr/SKILL.md
  • .codex/skills/gh-pr/references/pr-body-template.md
  • .codex/skills/gh-skills-sync
  • .github/workflows/auto-merge.yml
  • scripts/sync-gh-skills.sh

概要

GitHubスキルの包括的なエコシステムを追加します。PR検査、CI修正、イシュー分析、スキル同期を含む複数の自動化スキルとその関連ドキュメント、Pythonスクリプト、Bashスクリプトを導入しています。

変更内容

コホート / ファイル(s) 概要
gh-skills-sync スキル定義
.claude-plugin/plugins/unity-cli/skills/gh-skills-sync/SKILL.md, .claude/skills/gh-skills-sync, .codex/skills/gh-skills-sync
GitHubスキル同期機能の定義とスキルディレクトリ参照の追加。リポジトリからグローバルおよびプロジェクトディレクトリへのスキル同期を管理します。
gh-fix-ci スキル実装
.codex/skills/gh-fix-ci/SKILL.md, .codex/skills/gh-fix-ci/scripts/inspect_pr_checks.py, .codex/skills/gh-fix-ci/LICENSE.txt
PR内のCI障害、マージコンフリクト、レビューコメント等を検査するための包括的なスキル。複数検査モード(チェック、コンフリクト、レビュー、全て)とJSON出力形式に対応した1471行のPythonスクリプトを含みます。
gh-fix-issue スキル実装
.codex/skills/gh-fix-issue/SKILL.md, .codex/skills/gh-fix-issue/scripts/inspect_issue.py
GitHubイシューの包括的な検査・分析。エラーメッセージ、スタックトレース、ファイル参照、クロスリファレンスを抽出し、イシューを分類する784行のPythonスクリプトを含みます。
gh-pr スキル実装
.codex/skills/gh-pr/SKILL.md, .codex/skills/gh-pr/references/pr-body-template.md
PR作成・更新の自動化。厳密なプリフライトチェック、分岐処理、マージ後ロジックを定義し、標準化されたPRテンプレートを提供します。
gh-pr-check スキル実装
.codex/skills/gh-pr-check/SKILL.md
現在のブランチのPR状態チェック(チェックのみ、変更なし)。NO_PR、UNMERGED_PR_EXISTS等の状態分類と推奨アクションを定義します。
同期・ワークフロー関連
scripts/sync-gh-skills.sh, .github/workflows/auto-merge.yml
スキル同期の自動化スクリプト(188行、installer/git sparse-checkoutモード対応)と、PERSONAL_ACCESS_TOKENのトークン検証ロジック強化。

コード検証労力の見積もり

🎯 4 (複雑) | ⏱️ ~75分

作品

🐰 新しいスキルのぴょんぴょん跳ぶダンス♪
GitHubの修復をぴょーん!
PR検査、イシュー分析、同期もバッチリ
自動化の森も🌲しっぽふりふり
さあ、コードの冒険へぴょん!

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch develop

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant