GitHub GitLab Tool Guide
Tool Purpose
Reads repositories, creates commits, branches, and Pull/Merge Requests on GitHub and GitLab.
When to Use
- Opening PRs/MRs for reviewed or tested code
- Creating feature branches from issues
- Reading repository structure and file contents
- Reviewing commit history and diffs
How to Use
- Specify the repository (owner/name or URL)
- Read: fetch file contents, list directory, view PR
- Branch: create or switch branches
- Commit: stage and commit changes
- PR/MR: open, review, merge, or comment
- Provide the necessary parameters (branch name, commit message, file paths)
Limitations
- Requires authentication token with appropriate repo/file scope
- Cannot force-push to protected branches
- Large file operations may be rejected by platform limits
- Git submodules require separate handling
Output
Operation result with links, commit SHAs, or file contents.