{"id":25013906,"url":"https://github.com/leiberbertel/gitlab_automation","last_synced_at":"2026-04-30T07:38:11.539Z","repository":{"id":275334808,"uuid":"925780177","full_name":"leiberbertel/gitlab_automation","owner":"leiberbertel","description":"Automation tool for GitLab that allows the programmatic creation of branches and tags using the GitLab API.","archived":false,"fork":false,"pushed_at":"2025-02-04T04:37:03.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-06-20T11:46:30.721Z","etag":null,"topics":["automation","deployment","dotenv","gitlab","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/leiberbertel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2025-02-01T18:20:34.000Z","updated_at":"2025-02-04T04:37:03.000Z","dependencies_parsed_at":"2025-06-20T11:48:09.323Z","dependency_job_id":null,"html_url":"https://github.com/leiberbertel/gitlab_automation","commit_stats":null,"previous_names":["leiberbertel/gitlab_automation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leiberbertel/gitlab_automation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leiberbertel%2Fgitlab_automation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leiberbertel%2Fgitlab_automation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leiberbertel%2Fgitlab_automation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leiberbertel%2Fgitlab_automation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leiberbertel","download_url":"https://codeload.github.com/leiberbertel/gitlab_automation/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leiberbertel%2Fgitlab_automation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32458237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","deployment","dotenv","gitlab","python"],"created_at":"2025-02-05T07:16:44.534Z","updated_at":"2026-04-30T07:38:11.519Z","avatar_url":"https://github.com/leiberbertel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitLab Automation Tool\n\nAutomation tool for GitLab that allows the programmatic creation of branches and tags using the GitLab API.\n\n![Test Status](https://github.com/leiberbertel/gitlab_automation/actions/workflows/pytest.yml/badge.svg)\n\n## 🚀 Features\n\n- Automatic branch creation\n- Tag management with customized messages\n- Secure handling of credentials through environment variables\n- Modular and easily extensible structure\n\n## 📋 Prerequisites\n\n- Python 3.8 or higher\n- GitLab access token with sufficient permissions\n- GitLab project ID\n\n## 🔧 Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/leiberbertel/gitlab_automation\ncd gitlab-automation\n```\n\n2. Create a virtual environment (recommended):\n```bash\npython -m venv venv\nsource venv/bin/activate  # En Windows: venv\\Scripts\\activate\n```\n\n3. Install the dependencies:\n```bash\npip install -r requirements.txt\n```\n\n4. Set the environment variables:\n   - Copy the `.env.example` file to `.env`.\n   - Edit `.env` with your actual values.\n\n```bash\ncp .env.example .env\n```\n\n## ⚙️ Configuration\n\nBe sure to set the following environment variables in your `.env` file:\n\n```plaintext\nGITLAB_URL=https://gitlab.com\nGITLAB_PRIVATE_TOKEN=your-token-private\nGITLAB_PROJECT_ID=your-project-id\n```\n\nYou can also set these variables directly on your system:\n\n```bash\nexport GITLAB_URL=https://gitlab.com\nexport GITLAB_PRIVATE_TOKEN=your-token-private\nexport GITLAB_PROJECT_ID=your-project-id\n```\n\n## 🖥️ Usage\n\n### Run the main script\n\n```bash\npython main.py\n```\n\n### Use the classes in your own code\n\n```python\nfrom src.gitlab_client import GitLabClient\nfrom src.branch_manager import BranchManager\nfrom src.tag_manager import TagManager\n\n# Initialize the client\nclient = GitLabClient(gitlab_url, private_token)\n\n# Create a branch\nbranch_manager = BranchManager(client)\nbranch_manager.create_branch(project_id, 'feature/new-feature', 'main')\n\n# Create a tag\ntag_manager = TagManager(client)\ntag_manager.create_tag(project_id, 'v1.0.0', 'main', 'First stable version')\n```\n\n## 🧪 Tests\n\nTo run the tests:\n\n```bash\npytest\n```\n\n## 📁 Project Structure\n\n```\ngitlab-automation/\n│\n├── src/\n│   ├── __init__.py\n│   ├── gitlab_client.py      # Client for interacting with the GitLab API\n│   ├── branch_manager.py     # Logic for branch management\n│   └── tag_manager.py        # Logic for tag management\n│\n├── tests/\n│   ├── __init__.py\n│   ├── test_gitlab_client.py\n│   ├── test_branch_manager.py\n│   └── test_tag_manager.py\n│\n├── .env.example             # Example of environment variables\n├── requirements.txt         # Project units\n└── main.py                  # Main entry point\n```\n\n## 🤝 Contribute\n\n1. Fork the project\n2. Create a branch for your feature (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## 📝 License\n\nThis project is under the MIT License - see the file [LICENSE.txt](LICENSE.txt) for details.\n\n## ✨ Author\n\nLeiber Bertel - [@leiberbertel](https://github.com/leiberbertel)\n\n## 🙏 Acknowledgments\n\n- [python-gitlab](https://python-gitlab.readthedocs.io/) for providing an excellent library for interacting with GitLab\n- [python-dotenv](https://github.com/theskumar/python-dotenv) by the handling of environment variables\n\n## 📚 References\n\n- [GitLab API Documentation](https://docs.gitlab.com/ee/api/)\n- [Guide to python-gitlab](https://python-gitlab.readthedocs.io/en/stable/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleiberbertel%2Fgitlab_automation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleiberbertel%2Fgitlab_automation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleiberbertel%2Fgitlab_automation/lists"}