{"id":15821179,"url":"https://github.com/flexoid/gitlab-review-coverage","last_synced_at":"2026-05-18T15:36:31.362Z","repository":{"id":140080600,"uuid":"158979405","full_name":"flexoid/gitlab-review-coverage","owner":"flexoid","description":"GitLab Merge Request Coverage reporter","archived":false,"fork":false,"pushed_at":"2023-10-17T22:29:31.000Z","size":25,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-14T07:51:40.453Z","etag":null,"topics":["ci","coverage","gitlab","gitlab-ci","testing"],"latest_commit_sha":null,"homepage":null,"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/flexoid.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":"2018-11-24T22:40:03.000Z","updated_at":"2020-04-06T17:23:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c3f38c9-7126-492e-88f6-fb5da8ff005b","html_url":"https://github.com/flexoid/gitlab-review-coverage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flexoid/gitlab-review-coverage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Fgitlab-review-coverage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Fgitlab-review-coverage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Fgitlab-review-coverage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Fgitlab-review-coverage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexoid","download_url":"https://codeload.github.com/flexoid/gitlab-review-coverage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexoid%2Fgitlab-review-coverage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33183159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["ci","coverage","gitlab","gitlab-ci","testing"],"created_at":"2024-10-05T07:20:48.204Z","updated_at":"2026-05-18T15:36:31.343Z","avatar_url":"https://github.com/flexoid.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitLab Merge Request coverage reporter\n\nThe purpose of this tool is to report test coverage changes introduced by the merge request.\n\nCoverage can be increased, decreased or remained the same.\n\n## Requirements\n\n### GitLab version\n\nChecked and running on self-hosted GitLab CE 9.2.0.\nShould work on the more recent versions.\n\n### Running utility\n\nThe following ENV variables must be set:\n\n* `GITLAB_BASE_URL` - Base URL for API calls (e.g. `https://gitlab.com`)\n* `GITLAB_TOKEN` - GitLab API token with \"api\" scope (e.g. `SR-B7fFehUD91g7ygua`)\n* `PORT` - available port on the host system to listen for incoming GitLab webhook\n* `BOLT_DB_PATH` - path to the BoltDB file\n\n### GitLab project configuration\n\nGitLab webhook must be configured on the project.\n\nWebhook URL is the URL to the running instance of this utility, with specified `PORT`.\nEnabled triggers: \"Merge Requests Events\", \"Job Events\".\n\nTest CI jobs must have configured coverage RegExp.\n\n## Workflow overview\n\n* Build event is received.\n  * The commit coverage is stored, if available for that job.\n\n  * If there are one or more merge requests available with this commit as the latest MR commit,\n    the note is opened or updated with the coverage change info.\n\n* Merge Request event is received.\n  * Fetch and store merge request related data:\n    * last MR commit\n    * last commit before MR\n  * If there's coverage data already stored for both that commits,\n    coverage change can be easily determined and posted via opened/updated note.\n\nThe ID of the new note is stored for the merge request,\nso it can be used to update it later when the latest MR commit is changed,\ninstead of posting a new one.\n\n## Technical details\n\nThe utility uses BoltDB to store all required data to operate.\n\nAll the output of the utility is a structured log in JSON format,\nwhich enables great debugging capabilities.\n\nWhen the webhook event is received, as recommended, all the further processing is performed\nin the separate goroutines to minimize webhook response time.\n\n## Code style and quality\n\nThe main purpose of this utility, besides its direct functionality,\nis to practice writing in Go language.\n\nThe code is checked by [golangci-lint](https://github.com/golangci/golangci-lint).\n`golangci-lint run` returns no warnings.\n\nCurrently there is zero tests written, that's what I want to improve.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexoid%2Fgitlab-review-coverage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexoid%2Fgitlab-review-coverage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexoid%2Fgitlab-review-coverage/lists"}