{"id":36939396,"url":"https://github.com/veceravojtech/gitlab-cli","last_synced_at":"2026-02-27T13:15:25.795Z","repository":{"id":326520792,"uuid":"1105914947","full_name":"veceravojtech/gitlab-cli","owner":"veceravojtech","description":"A CLI tool for easy Gitlab control using API","archived":false,"fork":false,"pushed_at":"2025-12-05T10:08:07.000Z","size":8515,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-08T19:37:28.133Z","etag":null,"topics":["api","cli","devops","gitlab","golang","merge-request","terminal"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/veceravojtech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-28T10:45:08.000Z","updated_at":"2025-12-05T10:07:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/veceravojtech/gitlab-cli","commit_stats":null,"previous_names":["veceravojtech/gitlab-cli"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/veceravojtech/gitlab-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veceravojtech%2Fgitlab-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veceravojtech%2Fgitlab-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veceravojtech%2Fgitlab-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veceravojtech%2Fgitlab-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veceravojtech","download_url":"https://codeload.github.com/veceravojtech/gitlab-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veceravojtech%2Fgitlab-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28381019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T10:00:56.084Z","status":"ssl_error","status_checked_at":"2026-01-13T09:45:11.986Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","cli","devops","gitlab","golang","merge-request","terminal"],"created_at":"2026-01-13T10:30:03.088Z","updated_at":"2026-02-27T13:15:25.782Z","avatar_url":"https://github.com/veceravojtech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitLab CLI\n\nA command-line tool for managing GitLab merge requests with automated rebase and merge workflows.\n\n## Features\n\n- **List merge requests** - Filter by project, assignee, or approval status\n- **View MR details** - Quick summary or full JSON output\n- **Rebase MRs** - Trigger and wait for rebase completion\n- **Merge with auto-rebase** - Automatically rebase and retry when needed\n- **CI-aware merging** - Waits for pipelines to complete before merging\n- **Progress feedback** - Animated status updates during long operations\n\n## Installation\n\nDownload the latest binary for your platform from [Releases](https://github.com/veceravojtech/gitlab-cli/releases).\n\n### Linux\n\n```bash\ncurl -L https://github.com/veceravojtech/gitlab-cli/releases/latest/download/gitlab-cli-linux-amd64 -o gitlab-cli\nchmod +x gitlab-cli\nsudo mv gitlab-cli /usr/local/bin/\n```\n\n### macOS\n\n```bash\ncurl -L https://github.com/veceravojtech/gitlab-cli/releases/latest/download/gitlab-cli-darwin-amd64 -o gitlab-cli\nchmod +x gitlab-cli\nsudo mv gitlab-cli /usr/local/bin/\n```\n\n## Configuration\n\nCreate a configuration file at `~/.gitlab-cli.yaml`:\n\n```yaml\ngitlab_url: https://gitlab.example.com\ngitlab_token: your-personal-access-token\n\n# Optional defaults\ndefaults:\n  max_retries: 3\n  timeout: 5m\n  poll_interval: 5s\n```\n\n### Getting a GitLab Token\n\n1. Go to GitLab → User Settings → Access Tokens\n2. Create a token with `api` scope\n3. Copy the token to your config file\n\nYou can also specify a config file location with the `--config` flag.\n\n## Quick Reference\n\n| Command | Description | Key Flags |\n|---------|-------------|-----------|\n| `mr list` | List open merge requests | `--project`, `--mine`, `--approved` |\n| `mr show \u003cid\u003e` | Show MR details | `--json` |\n| `mr rebase \u003cid\u003e` | Rebase a merge request | `--no-wait` |\n| `mr merge \u003cid\u003e` | Merge a merge request | `--auto-rebase`, `--max-retries`, `--timeout` |\n\n### Flag Details\n\n| Flag | Command | Description |\n|------|---------|-------------|\n| `--project \u003cid\u003e` | list | Filter by project ID |\n| `--mine` | list | Only MRs assigned to me |\n| `--approved` | list | Only approved MRs |\n| `--json` | show | Output as JSON |\n| `--no-wait` | rebase | Don't wait for rebase completion |\n| `--auto-rebase` | merge | Automatically rebase if needed |\n| `--max-retries \u003cn\u003e` | merge | Max rebase attempts (default: 3) |\n| `--timeout \u003cduration\u003e` | merge | Overall timeout (default: 5m) |\n\n## Examples\n\n### List all open MRs assigned to me\n\n```bash\ngitlab-cli mr list --mine\n```\n\n### List approved MRs in a specific project\n\n```bash\ngitlab-cli mr list --project 123 --approved\n```\n\n### View MR details\n\n```bash\ngitlab-cli mr show 456\n\n# Output as JSON for scripting\ngitlab-cli mr show 456 --json\n```\n\n### Rebase an MR\n\n```bash\ngitlab-cli mr rebase 456\n\n# Trigger rebase without waiting\ngitlab-cli mr rebase 456 --no-wait\n```\n\n### Merge an MR with automatic rebase\n\n```bash\n# Simple merge (fails if rebase needed)\ngitlab-cli mr merge 456\n\n# Auto-rebase and retry up to 3 times\ngitlab-cli mr merge 456 --auto-rebase\n\n# Custom retry limit and timeout\ngitlab-cli mr merge 456 --auto-rebase --max-retries 5 --timeout 10m\n```\n\nThe merge command automatically waits for CI pipelines to complete and shows live progress updates.\n\n## Development\n\n### Building from Source\n\n```bash\ngit clone https://github.com/veceravojtech/gitlab-cli.git\ncd gitlab-cli\ngo build -o gitlab-cli ./cmd/gitlab-cli\n```\n\n### Running Tests\n\n```bash\ngo test ./...\n```\n\n### Project Structure\n\n```\n├── cmd/gitlab-cli/     # Application entrypoint\n├── internal/\n│   ├── cli/            # Cobra commands and flag handling\n│   ├── config/         # Configuration loading and validation\n│   ├── gitlab/         # GitLab API client\n│   └── progress/       # Animated progress output\n├── .gitlab-cli.yaml.example\n└── go.mod\n```\n\n### Adding New Commands\n\n1. Add command definition in `internal/cli/`\n2. Implement API methods in `internal/gitlab/`\n3. Register the command in `init()`\n4. Update the README quick reference table\n\n## Contributing\n\nContributions are welcome! Please:\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/my-feature`)\n3. Make your changes\n4. Run tests (`go test ./...`)\n5. Commit with a descriptive message\n6. Open a pull request\n\nFor bug reports and feature requests, please open an issue.\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveceravojtech%2Fgitlab-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveceravojtech%2Fgitlab-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveceravojtech%2Fgitlab-cli/lists"}