Claude-skill-registry gitlab-commits
Manages GitLab commits. Use for listing, creating, reverting, or querying commit details/diffs/comments. Triggers: commit history, changes, reversions.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/gitlab-commits" ~/.claude/skills/majiayu000-claude-skill-registry-gitlab-commits && rm -rf "$T"
manifest:
skills/data/gitlab-commits/SKILL.mdsource content
Overview
This skill covers commit operations via MCP. Use for code changes, diffs, or discussions.
Available Tools
: Get commits in a GitLab project, optionally filtered.get_commits- Parameters:
(str): Optional. - Project ID or pathproject_id
(Optional[str]): Optional. - Commit SHAcommit_hash
(Optional[str]): Optional. - Branch, tag, or commit SHA to filter commitsref_name
(Optional[str]): Optional. - Only commits after this date (ISO 8601 format)since
(Optional[str]): Optional. - Only commits before this date (ISO 8601 format)until
(Optional[str]): Optional. - Only commits that include this file pathpath
(Optional[bool]): Optional. - Include all commits across all branchesall
- Parameters:
: Create a new commit in a GitLab project.create_commit- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Branch name for the commitbranch
(str): Optional. - Commit messagecommit_message
(List[Dict[str, str]]): Optional. - List of actions (create/update/delete files)actions
(Optional[str]): Optional. - Author email for the commitauthor_email
(Optional[str]): Optional. - Author name for the commitauthor_name
- Parameters:
: Get the diff of a specific commit in a GitLab project.get_commit_diff- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Commit SHAcommit_hash
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Revert a commit in a target branch in a GitLab project.revert_commit- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Commit SHA to revertcommit_hash
(str): Optional. - Target branch to apply the revertbranch
(Optional[bool]): Optional. - Simulate the revert without applyingdry_run
- Parameters:
: Retrieve comments on a specific commit in a GitLab project.get_commit_comments- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Commit SHAcommit_hash
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Create a new comment on a specific commit in a GitLab project.create_commit_comment- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Commit SHAcommit_hash
(str): Optional. - Content of the commentnote
(Optional[str]): Optional. - File path to associate with the commentpath
(Optional[int]): Optional. - Line number in the file for the commentline
(Optional[str]): Optional. - Type of line ('new' or 'old')line_type
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Retrieve discussions (threaded comments) on a specific commit in a GitLab project.get_commit_discussions- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Commit SHAcommit_hash
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Retrieve build/CI statuses for a specific commit in a GitLab project.get_commit_statuses- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Commit SHAcommit_hash
(Optional[str]): Optional. - Filter statuses by reference (branch or tag)ref
(Optional[str]): Optional. - Filter statuses by CI stagestage
(Optional[str]): Optional. - Filter statuses by job namename
(Optional[bool]): Optional. - Include coverage informationcoverage
(Optional[bool]): Optional. - Include all statusesall
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Post a build/CI status to a specific commit in a GitLab project.post_build_status_to_commit- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Commit SHAcommit_hash
(str): Optional. - State of the build (e.g., 'pending', 'running', 'success', 'failed')state
(Optional[str]): Optional. - URL to link to the buildtarget_url
(Optional[str]): Optional. - Context of the status (e.g., 'ci/build')context
(Optional[str]): Optional. - Description of the statusdescription
(Optional[float]): Optional. - Coverage percentagecoverage
(Optional[int]): Optional. - ID of the associated pipelinepipeline_id
(Optional[str]): Optional. - Reference (branch or tag) for the statusref
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Retrieve merge requests associated with a specific commit in a GitLab project.get_commit_merge_requests- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Commit SHAcommit_hash
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
: Retrieve the GPG signature for a specific commit in a GitLab project.get_commit_gpg_signature- Parameters:
(str): Optional. - Project ID or pathproject_id
(str): Optional. - Commit SHAcommit_hash
(Optional[Context]): Optional. - MCP context for progressctx
- Parameters:
Usage Instructions
- Use project_id and commit_hash for specifics.
- For creation, build actions list (e.g., [{"action": "create", "file_path": "file.txt", "content": "..."}]).
- Async tools (e.g., delete) support progress via ctx.
Examples
- List commits:
with project_id="123", ref_name="main", since="2023-01-01".get_commits - Create:
with project_id="123", branch="feature", commit_message="Add file", actions=[...].create_commit - Revert:
with project_id="123", commit_hash="abc123", branch="main".revert_commit
Error Handling
- Invalid ref: Check branch/SHA existence first.
- Conflicts: Use diff tools to resolve.
Reference
tools-reference.md for schemas.