{"id":32813585,"url":"https://github.com/sgaunet/auto-mr","last_synced_at":"2026-02-26T13:01:29.447Z","repository":{"id":317103721,"uuid":"1064282892","full_name":"sgaunet/auto-mr","owner":"sgaunet","description":"A Go-based automated merge request tool for GitLab and GitHub repositories with zero external CLI dependencies","archived":false,"fork":false,"pushed_at":"2026-02-14T16:01:20.000Z","size":249,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-14T23:16:44.975Z","etag":null,"topics":["automation","ci-cd","cli-tool","devops","github","gitlab","golang","merge-request","pull-request","workflow-automation"],"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/sgaunet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["sgaunet"]}},"created_at":"2025-09-25T20:04:30.000Z","updated_at":"2026-02-14T16:01:23.000Z","dependencies_parsed_at":"2025-09-28T22:12:02.093Z","dependency_job_id":"81292fa9-9cb8-4982-8093-d2c276c95ea4","html_url":"https://github.com/sgaunet/auto-mr","commit_stats":null,"previous_names":["sgaunet/auto-mr"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/sgaunet/auto-mr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fauto-mr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fauto-mr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fauto-mr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fauto-mr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgaunet","download_url":"https://codeload.github.com/sgaunet/auto-mr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fauto-mr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29860109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: 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":["automation","ci-cd","cli-tool","devops","github","gitlab","golang","merge-request","pull-request","workflow-automation"],"created_at":"2025-11-07T03:01:25.710Z","updated_at":"2026-02-26T13:01:29.442Z","avatar_url":"https://github.com/sgaunet.png","language":"Go","funding_links":["https://github.com/sponsors/sgaunet"],"categories":[],"sub_categories":[],"readme":"# auto-mr\n\nA Go-based automated merge request tool for GitLab and GitHub repositories. This tool eliminates the need for external CLI dependencies by using native Go libraries.\n\n## Features\n\n- ✅ Zero external CLI dependencies (replaces `glab`, `gh`, `jq`, `yq`, `gum`)\n- ✅ Support for both GitLab and GitHub\n- ✅ Interactive label selection\n- ✅ Pipeline/workflow waiting with timeout\n- ✅ Auto-approval and merging\n- ✅ Branch cleanup after merge\n- ✅ Configuration via YAML file\n\n## Installation\n\n### From Releases\n\n* Download the latest release from the [releases page](https://github.com/sgaunet/auto-mr/releases).\n* Install the binary in /usr/local/bin or any other directory in your PATH.\n\n### With go\n\n```bash\ngo install github.com/sgaunet/auto-mr@latest\n```\n\n### From source:\n\n```bash\ngit clone https://github.com/sgaunet/auto-mr\ncd auto-mr\ngo build -o auto-mr\n```\n\n### Homebrew\n\n```bash\nbrew tap sgaunet/homebrew-tools\nbrew install sgaunet/tools/auto-mr\n```\n\n## Configuration\n\nCreate a configuration file at `~/.config/auto-mr/config.yml`:\n\n```yaml\ngitlab:\n  assignee: your-gitlab-username\n  reviewer: reviewer-gitlab-username\ngithub:\n  assignee: your-github-username\n  reviewer: reviewer-github-username\n```\n\n## Environment Variables\n\n### GitLab\nSet your GitLab personal access token:\n```bash\nexport GITLAB_TOKEN=\"your-gitlab-token\"\n```\n\n### GitHub\nSet your GitHub personal access token:\n```bash\nexport GITHUB_TOKEN=\"your-github-token\"\n```\n\n## Usage\n\n1. Make sure you're on a feature branch (not main/master)\n2. Commit and ensure there are no staged changes\n3. Run the tool:\n\n```bash\nauto-mr\n```\n\n### Options\n\n- `--squash`: Squash commits when merging (default: false, preserves commit history)\n- `--log-level`: Set log level (debug, info, warn, error) (default: \"info\")\n- `--version`: Print version and exit\n\nExample with squash:\n```bash\nauto-mr --squash\n```\n\n### Workflow\n\nThe tool will:\n1. Detect if you're using GitLab or GitHub\n2. Push your current branch\n3. Let you select labels interactively\n4. Create a merge/pull request with proper assignee and reviewer\n5. Wait for CI/CD pipeline completion\n6. Auto-approve (GitLab only) and merge the request (squash if --squash flag is used)\n7. Switch back to main branch and clean up\n\n## Replaced Dependencies\n\nThis Go version eliminates these external dependencies:\n\n| Original Tool | Replaced With |\n|---------------|---------------|\n| `glab` | GitLab Go client library |\n| `gh` | GitHub Go client library |\n| `jq` | Native Go JSON processing |\n| `yq` | Native Go YAML processing |\n| `gum` | Survey library for interactive prompts |\n| `git` | go-git library |\n\n## Token Permissions\n\n### GitLab Token Permissions\n- `api` (full API access)\n- `read_repository`\n- `write_repository`\n\n### GitHub Token Permissions\n- `repo` (full repository access)\n- `workflow` (if using GitHub Actions)\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Run tests: `go test ./...`\n5. Submit a pull request\n\n## License\n\nMIT License - see LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgaunet%2Fauto-mr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgaunet%2Fauto-mr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgaunet%2Fauto-mr/lists"}