community-automations/gitlab-mr-reviewer

DevOps 與程式碼

PublicClaude 子代理

GitLab MR 程式碼審查員

小團隊常常因為騰不出人手,沒有人能進行第二輪審查就直接合併,bug 就這樣跟著上線。這個審查工具會自動讀取每一個 merge request。

sonnet4 天GitLabOpenAIGitLab CISonarQube
ClaudeClaude
ROI for
README.md

為什麼選擇此子代理

小團隊常常因為騰不出人手,沒有人能進行第二輪審查就直接合併,bug 就這樣跟著上線。這個審查工具會自動讀取每一個 merge request。

每次 MR 事件觸發時,它會拉取 diff 和 pipeline 狀態,依據你的規範檢查 bug、安全漏洞和風險模式,並在最適當的位置留下行內註解。它會設定審查狀態,讓需要人工審查的 MR 在合併前被標記出來,沒問題的則順暢通過,不受阻擋。

運作方式

    • Read

      Used at step 01 to kick off the pipeline.

    • Write

      Used at step 01 to kick off the pipeline.

    • WebFetch

      Used at step 01 to kick off the pipeline.

    • WebSearch

      Used at step 01 to kick off the pipeline.

輸出範例

json
// Sample output
// (generated when the pipeline finishes)

Given a GitLab merge request diff and pipeline status, return a JSON review with inline notes, a summary, and an overall status of approve or needs-attention.

Unlock the rest

The full agent definition, install snippet, and starter task are gated for community members.

Members get the full `.md` agent file, the npm / pnpm install one-liners, a starter prompt that we've tuned against real runs, and the open-source repo when this automation ships there. One email, magic link, done.