Skip to content

ci: run ast-grep on pull requests - #12

Merged
furedea merged 1 commit into
mainfrom
ci/add-ast-grep
Nov 17, 2026
Merged

furedea merged 1 commit into
mainfrom
ci/add-ast-grep

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

概要

共有 reusable workflow の ast-grep チェックを CI に追加します.ast-grep ジョブを ci.yml に追加し,all-green の needs にも加えました.

  • furedea/agent-config の ast-grep ルールを,PR の追加行にのみ適用します(reviewdog,-filter-mode=added).
  • push イベントではスキャンせず成功します.既存コードには触れません.

Refs furedea/agent-config#169

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@furedea

furedea commented Nov 17, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 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-17T09:03:56.108052Z 0a02fa8 Manual request
ℹ️ 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.

@github-actions

Copy link
Copy Markdown

Review summary: No blocking findings.

This adds an ast-grep job pinned to a commit SHA of furedea/reusable-workflows (v1.5.0), with least-privilege job permissions (contents: read, pull-requests: read), and adds it to all-green.needs. That matches how the other reusable-workflow jobs are set up. Because all-green also fails on skipped, push runs on main need the reusable workflow to finish successfully rather than skip, as the PR description says it does.

Caveat: I couldn't read the contents of ast-grep.yml@c2cf0e8 during this review. So I haven't confirmed that its declared permissions fit within the read scopes granted here. If the reusable workflow asks for more, such as pull-requests: write for reviewdog comments, the job will fail at startup. Please check that the first CI run of this PR goes green.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 0a02fa89e2

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea
furedea merged commit c787307 into main Nov 17, 2026
19 checks passed
@furedea
furedea deleted the ci/add-ast-grep branch November 17, 2026 12:58
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.

1 participant