Skip to content

issue と PR を limit7412 へ自動アサインする - #102

Merged
limit7412 merged 2 commits into
masterfrom
claude/busy-meitner-qi8tx8
Nov 27, 2026
Merged

limit7412 merged 2 commits into
masterfrom
claude/busy-meitner-qi8tx8

Conversation

@limit7412

@limit7412 limit7412 commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

概要

issue と PR が開かれた (または再オープンされた) ときに、作成者に関係なく limit7412 をアサインするワークフロー .github/workflows/auto-assign.yml を追加する。

実装

  • issue は issues、PR は pull_request_target の opened / reopened で受ける。
    • pull_request では、フォークからの PR に対して GITHUB_TOKEN が読み取り専用になり、アサインできない。そのため pull_request_target を使う。
    • PR のコードはチェックアウトも実行もしない。書き込み権限が PR 側のコードに渡ることはない。
  • アサインには、ランナーに入っている gh api で REST の POST /repos/{owner}/{repo}/issues/{number}/assignees を呼ぶ。REST API では PR も issue として扱われるので、両方を同じ呼び出しでアサインできる。
  • uses: は持たない。ただし gh actions-lock --verify はすべてのワークフローにロックファイルのエントリを求めるので、actions.lock に '.github/workflows/auto-assign.yml': [] を追加した (b5c008f)。gh-actions-lock 自身が依存の無いワークフローに出力する形式と同じである。

確認事項

  • pull_request_target は default branch 上の定義で動く。PR の自動アサインが効くのはマージ後になる。

🤖 Generated with Claude Code

https://claude.ai/code/session_01WFzzs9mnTkGnsihkXq4Zwi

@limit7412
limit7412 marked this pull request as ready for review November 27, 2026 07:50
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T07:51:22.319998Z 0f3cacc Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

gh actions-lock --verify は uses: を持たないワークフローにも
ロックファイルのエントリを求めるため、空の依存リストで追加する。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WFzzs9mnTkGnsihkXq4Zwi
@limit7412
limit7412 merged commit 2614085 into master Nov 27, 2026
2 checks passed
@limit7412
limit7412 deleted the claude/busy-meitner-qi8tx8 branch November 27, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants