{"id":21169979,"url":"https://github.com/ai-lenok/gitlab-adapter","last_synced_at":"2026-04-10T02:57:29.401Z","repository":{"id":173931472,"uuid":"651088932","full_name":"ai-lenok/gitlab-adapter","owner":"ai-lenok","description":"Adapter between Learning Management System and GitLab","archived":false,"fork":false,"pushed_at":"2023-06-10T17:59:50.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T17:26:58.289Z","etag":null,"topics":["cobra-cli","docker","docker-compose","ghcr","gin","gitlab","golang","kubernetes","viper"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ai-lenok.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":"2023-06-08T13:18:30.000Z","updated_at":"2023-06-10T17:44:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ee05101-96ea-4a34-afb0-89a4fb4c1d81","html_url":"https://github.com/ai-lenok/gitlab-adapter","commit_stats":null,"previous_names":["ai-lenok/gitlab-adapter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ai-lenok/gitlab-adapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-lenok%2Fgitlab-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-lenok%2Fgitlab-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-lenok%2Fgitlab-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-lenok%2Fgitlab-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ai-lenok","download_url":"https://codeload.github.com/ai-lenok/gitlab-adapter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-lenok%2Fgitlab-adapter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272800967,"owners_count":24995185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"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":["cobra-cli","docker","docker-compose","ghcr","gin","gitlab","golang","kubernetes","viper"],"created_at":"2024-11-20T15:54:50.979Z","updated_at":"2026-04-10T02:57:24.343Z","avatar_url":"https://github.com/ai-lenok.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitLab Adapter\n\n[![Build status](https://github.com/ai-lenok/gitlab-adapter/actions/workflows/workflow.yml/badge.svg?branch=main)](https://github.com/ai-lenok/gitlab-adapter/actions/workflows/workflow.yml)\n\nAdapter between Learning Management System and GitLab\n\n## Features\n\n* Create repository\n* Delete repository\n* Verify that the latest build in the repository was successful\n\n## Ways to work\n\n* HTTP server\n* Command Line Interface\n\n### HTTP examples\n\n[RESTful client](test-http-client/client.http)\n\n### Health check\n\n```shell\nGET http://{{host}}/health\n```\n\n## Configuration\n\nAll necessary configs you can put to `config/application.yaml` file\n\nOr put like environment variables with prefix `GA_`\n\nOr put on command line parameters\n\n### Example\n\n#### Config file\n\n```yaml\ngitlab:\n  host: \"https://gitlab.com\"\n  token: \"change-me\"\n```\n\n#### Environment variables\n\n```shell\nexport GA_GITLAB_HOST=\"https://gitlab.com\"\nexport GA_GITLAB_TOKEN=\"change-me\"\n```\n\n#### Command line parameters\n\n```shell\ngitlab-adapter start-server --gitlab.host \"https://gitlab.com\" --gitlab.token \"change-me\"\n```\n\n## Work\n\n### Create repository\n\n### CLI\n\n```shell\ngitlab-adapter create-repo --namespace 1234567890 --name test-name --path test-path --description \"Description repo\"\n```\n\n### HTTP\n\n```shell\nPOST http://{{host}}/api/v1/project\n```\n\n### Delete repository\n\n### CLI\n\n```shell\ngitlab-adapter delete-repo --project-id 1000000000\n```\n\n### HTTP\n\n```shell\nDELETE http://{{host}}/api/v1/project\n```\n\n### Verify that the latest build in the repository was successful\n\n### CLI\n\n```shell\ngitlab-adapter verify-pipeline --project-id 1000000000\n```\n\n* Return status 0 - success\n* Return status 1 - failed\n\n### HTTP\n\n```shell\nPOST http://{{host}}/api/v1/project/verify-pipeline\n```\n\n* Return status 204 - success\n* Return status 409 - failed\n\n## App\n\n### Build\n\n```shell\nmake build\n```\n\n### Remove all artefacts\n\n```shell\nmake clean\n```\n\n### Run server\n\n```shell\nmake start-server\n```\n\n## Docker\n\n### Build\n\n```shell\ndocker image build --tag IMAGE_NAME .\n```\n\n### Run\n\n```shell\ndocker container run --publish 8080:8080 --volume ./config/:/app/config/ ghcr.io/ai-lenok/gitlab-adapter:main\n```\n\n#### Docker-compose\n\n```shell\ndocker-compose up --detach\n```\n\n## Kubernetes\n\n### Run\n\n```shell\nkubectl apply --filename manifest/\n```\n\n### Clean\n\n```shell\nkubectl delete --filename manifest/\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-lenok%2Fgitlab-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fai-lenok%2Fgitlab-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-lenok%2Fgitlab-adapter/lists"}