{"id":21997552,"url":"https://github.com/stephane-klein/gitlab-bot-sync-issues-mr-labels","last_synced_at":"2026-04-15T18:32:40.796Z","repository":{"id":99039882,"uuid":"260970206","full_name":"stephane-klein/gitlab-bot-sync-issues-mr-labels","owner":"stephane-klein","description":"GitLab Bot to sync Issues labels and MergeRequest labels","archived":false,"fork":false,"pushed_at":"2020-06-16T14:34:24.000Z","size":7,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T04:44:52.413Z","etag":null,"topics":["automation","bot","gitlab"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephane-klein.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-05-03T16:16:27.000Z","updated_at":"2021-10-23T21:11:46.000Z","dependencies_parsed_at":"2023-04-20T00:44:28.234Z","dependency_job_id":null,"html_url":"https://github.com/stephane-klein/gitlab-bot-sync-issues-mr-labels","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stephane-klein/gitlab-bot-sync-issues-mr-labels","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fgitlab-bot-sync-issues-mr-labels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fgitlab-bot-sync-issues-mr-labels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fgitlab-bot-sync-issues-mr-labels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fgitlab-bot-sync-issues-mr-labels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephane-klein","download_url":"https://codeload.github.com/stephane-klein/gitlab-bot-sync-issues-mr-labels/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephane-klein%2Fgitlab-bot-sync-issues-mr-labels/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31854804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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","bot","gitlab"],"created_at":"2024-11-29T22:16:58.915Z","updated_at":"2026-04-15T18:32:40.778Z","avatar_url":"https://github.com/stephane-klein.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitLab bot to sync Issues labels and MergeRequest labels\n\nGitLab bot behaviours:\n\n- When a user update GitLab issue labels, if this issue is closed only by one Merge Request then this GitLab Bot synchronise Merge Request labels with issue labels.\n- When a user update GitLab Merge Request labels, GitLab Bot synchronise issues labels closed by this issue, only if this issue are closed by only one Merge Request.\n\n## GitLab configuration\n\n```\n$ cp .source.sample .source\n```\n\n- Create [GitLab Access Tokens](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token)\n  - Select `api` scope\n  - Fill ` Your New Personal Access Token` in `GL_ACCESS_TOKEN` in `.env`\n- Create [GitLab Webhooks](https://docs.gitlab.com/ee/user/project/integrations/webhooks.html)\n  - Fill URL with url where is hosted `gitlab-bot` service\n  - Generate `Secret Token` and fill this value in `GL_SECRET` in `.env`\n\n## Usage without Docker\n\n```\n$ python3 -m venv .venv\n$ source .venv/bin/activate\n$ pip install -r requirements.txt\n```\n\nUpdate `label_sync_filter` function in `main.py` to configure the label to sync.\n\n```\n$ source .source\n```\n\nStart bot:\n\n```\n$ python main.py\n```\n\nOptionnal: in another terminal, create a SSH port forwarding to develop on laptop behind NAT network:\n\n```\n$ ssh -R 127.0.0.1:8080:0.0.0.0:8080 triton\n```\n\n## Build Docker image\n\n```\n$ ./scripts/build-docker-image.sh\n```\n\n## Usage with Docker\n\n```\n$ source .source\n$ docker-compose up -d\n```\n\n## Ressources\n\nTools:\n\n- [beenje/gidgetlab](https://gitlab.com/beenje/gidgetlab) - An async GitLab API library for Python based on https://github.com/brettcannon/gidgethub\n- [python-gitlab/python-gitlab](https://github.com/python-gitlab/python-gitlab) - Python wrapper for the GitLab API\n\nAPI v4:\n\n- [Merge requests API](https://docs.gitlab.com/ee/api/merge_requests.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephane-klein%2Fgitlab-bot-sync-issues-mr-labels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephane-klein%2Fgitlab-bot-sync-issues-mr-labels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephane-klein%2Fgitlab-bot-sync-issues-mr-labels/lists"}