Back to all prompts
ClaudeCoding
FreeAgent Prompt Code Review Gitlab Comment Posting
<!-- name: "Agent Prompt: /code-review GitLab comment posting" description: "Directs code review findings to a general GitLab merge request note when the comment flag is enabled" ccVersion: "2.1.257"
P
Piebald-AI4.7
The Prompt
<!--
name: "Agent Prompt: /code-review GitLab comment posting"
description: "Directs code review findings to a general GitLab merge request note when the comment flag is enabled"
ccVersion: "2.1.257"
variables:
- "GITLAB_MR_IID"
- "GLAB_MR_NOTE_OPTIONS"
- "GITLAB_REPOSITORY_REFERENCE"
-->
## Posting to GitLab (--comment)
The `--comment` flag was passed. After producing the findings list, if the
review target is a GitLab merge request, post the findings as one general MR
note via `${`glab mr note${GITLAB_MR_IID?` ${GITLAB_MR_IID}`:""}${GLAB_MR_NOTE_OPTIONS} -m "<body>"`}`${GITLAB_REPOSITORY_REFERENCE?"":" from inside that project's checkout"}
(every finding with its file:line, the issue, and the suggested fix). glab has no single verb for line-anchored
comments; those require `glab api projects/:id/merge_requests/:iid/discussions`,
so post the general note unless the user asks for inline threads. If glab is
not available in this session, print the findings instead. If the target is
not an MR, print the findings to the terminal and note that `--comment` was
ignored.
#claude-code-system-prompts#agent-prompt-code-review-gitlab-comment-posting
Source: Piebald-AI/claude-code-system-prompts by Piebald-AI · License: MIT
Related Prompts
Claude$1.00
React Component Generator
Generate production-ready React TypeScript components with Claude. Create fully typed components with props, hooks, and...
Codingcodingreact
by DevCraft
4.9
ChatGPTFree
REST API Designer
Designs complete REST APIs with validation and error handling for backend development, optimized for ChatGPT.
Codingcodingapi
by APIArchitect
4.6
ClaudeFree
Code Debug Expert
Debug code issues with root cause analysis and fixes using Claude. Identify errors, explain causes, and provide correcte...
Codingcodingdebug
by BugHunter
4.8