{"id":38339337,"url":"https://github.com/cosminilie/gitbot","last_synced_at":"2026-01-17T02:58:56.177Z","repository":{"id":57600014,"uuid":"83919520","full_name":"cosminilie/gitbot","owner":"cosminilie","description":"Gitlab bot","archived":false,"fork":false,"pushed_at":"2017-03-07T10:56:51.000Z","size":3366,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T06:12:04.020Z","etag":null,"topics":["gitlab-ce","gitlab-webhook"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cosminilie.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}},"created_at":"2017-03-04T19:37:03.000Z","updated_at":"2023-11-01T20:14:50.000Z","dependencies_parsed_at":"2022-09-16T19:00:39.239Z","dependency_job_id":null,"html_url":"https://github.com/cosminilie/gitbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cosminilie/gitbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosminilie%2Fgitbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosminilie%2Fgitbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosminilie%2Fgitbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosminilie%2Fgitbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosminilie","download_url":"https://codeload.github.com/cosminilie/gitbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosminilie%2Fgitbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["gitlab-ce","gitlab-webhook"],"created_at":"2026-01-17T02:58:55.477Z","updated_at":"2026-01-17T02:58:56.162Z","avatar_url":"https://github.com/cosminilie.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"A gitlab bot used to enforce change control.\n\n[![Build Status](https://travis-ci.org/cosminilie/gitbot.svg?branch=master \"Build Status\")](https://travis-ci.org/cosminilie/gitbot)\n[![Go Report Card](https://goreportcard.com/badge/github.com/cosminilie/gitbot)](https://goreportcard.com/report/github.com/cosminilie/gitbot)\n[![GoDoc](https://godoc.org/github.com/cosminilie/gitbot.?status.svg)](https://godoc.org/github.com/cosminilie/gitbot)\n\n## Overview\nSupports resetting permissions for groups. Add's lgtm support in merge requests comments based on a predefined list of approvers. \n\nExample config (using hcl - https://github.com/hashicorp/hcl) since it more clear to express the repo object in my opinion vs ini style or json/toml,etc):\n```\ntoken = \"\"\ngit-api-URL = \"https://gitlab.company.net/api/v3/\"\ndefault-approvers = [\"user1\",\"user2\",\"user3\"]\n\nrepo \"monitoring_group/test1\" {\nplugins = [\"lgtm\"]\napprovers = [\"user5\"]\n}\n\nrepo \"tools\" {\nplugins = [\"lgtm\",\"drop_rights\"]\napprovers = [\"user6\"]\n}\n```\n\nAssuming you are in the default-approvers or on the approvers list on the group definition using ```/lgtm``` the bot will merge the request. You will also need to create a gitlab user with administrator rights (probably can have more granular rights) and provide the token for that user in the config file.  \n\nHeavily inspired by: https://github.com/kubernetes/test-infra/tree/master/prow\n\n## Not ready for production\nThe project is missing tests so don't use this in production! It was a side project to understand how the kubernetes bot works and learn the gitlab api. With some work (removing some racing conditions) and a more clear implementation of the group plugins it can get there, but I don't have the time right now. It will also need a way to add tags after a merge request so you can get an artifact out based on the tag (make releases based on tags). Still need to figure out a way on how to do this best, either by adding a new keyword e.g. \"/tag 0.1.1\" though a comment on the already merged \"merge request\" or though some other way. This would be simple to add as it's very similar to the lgtm plugin.\n\n## Building locally\n\nYou will need to have docker installed and available in your path. To generate RPM's run ```make docker-rpm```. \nAlternatively you can run make help to get the supported list of operations. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosminilie%2Fgitbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosminilie%2Fgitbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosminilie%2Fgitbot/lists"}