{"id":15285890,"url":"https://github.com/sgaunet/gitlab-stats","last_synced_at":"2025-08-20T19:29:30.272Z","repository":{"id":111421319,"uuid":"577058395","full_name":"sgaunet/gitlab-stats","owner":"sgaunet","description":"tool to register stats of gitlab projects/groups and make a barchart of activity","archived":false,"fork":false,"pushed_at":"2025-05-05T19:29:39.000Z","size":192,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T03:46:50.351Z","etag":null,"topics":["gitlab","statistics"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sgaunet.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-11T20:54:50.000Z","updated_at":"2025-05-05T19:29:37.000Z","dependencies_parsed_at":"2024-09-06T22:15:52.663Z","dependency_job_id":"ecab2580-0a93-4b07-bad8-5508970a565b","html_url":"https://github.com/sgaunet/gitlab-stats","commit_stats":{"total_commits":44,"total_committers":3,"mean_commits":"14.666666666666666","dds":0.5227272727272727,"last_synced_commit":"0ed8b0fbd935ada32f160fe2a49133890a2956ca"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgitlab-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgitlab-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgitlab-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Fgitlab-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgaunet","download_url":"https://codeload.github.com/sgaunet/gitlab-stats/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810275,"owners_count":21807759,"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","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","statistics"],"created_at":"2024-09-30T15:08:13.204Z","updated_at":"2025-08-20T19:29:30.250Z","avatar_url":"https://github.com/sgaunet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/sgaunet/gitlab-stats)](https://goreportcard.com/report/github.com/sgaunet/gitlab-stats)\n[![GitHub release](https://img.shields.io/github/release/sgaunet/gitlab-stats.svg)](https://github.com/sgaunet/gitlab-stats/releases/latest)\n![GitHub Downloads](https://img.shields.io/github/downloads/sgaunet/gitlab-stats/total)\n![coverage](https://raw.githubusercontent.com/wiki/sgaunet/gitlab-stats/coverage-badge.svg)\n[![Linter](https://github.com/sgaunet/gitlab-stats/actions/workflows/linter.yml/badge.svg)](https://github.com/sgaunet/gitlab-stats/actions/workflows/linter.yml)\n[![Coverage Badge Generation](https://github.com/sgaunet/gitlab-stats/actions/workflows/coverage.yml/badge.svg)](https://github.com/sgaunet/gitlab-stats/actions/workflows/coverage.yml)\n[![Snapshot](https://github.com/sgaunet/gitlab-stats/actions/workflows/snapshot.yml/badge.svg)](https://github.com/sgaunet/gitlab-stats/actions/workflows/snapshot.yml)\n[![Release](https://github.com/sgaunet/gitlab-stats/actions/workflows/release.yml/badge.svg)](https://github.com/sgaunet/gitlab-stats/actions/workflows/release.yml)\n[![License](https://img.shields.io/github/license/sgaunet/gitlab-stats.svg)](LICENSE)\n\n# gitlab-stats\n\ngitlab-stats is a tool to register stats of gitlab projects/groups. Based on the statistics saved, it can generate a graph to visualize the activity on gitlab projects/groups.\n\nExample:\n\n![screenshot](doc/screenshot.png)\n\nActually, the stats are saved in $HOME/.gitlab-stats/db.json.\n\nTo register stats, you need to add cron, for example: \n\n```\n00 00 * * * GITLAB_TOKEN=.... /usr/local/bin/gitlab-stats -g \u003cgroupID\u003e   # comment\n```\n\nTo generate the screenshot, you can also add a cron or execute it in the command line. Example of a cron:\n\n```\n00 00 1 * * /usr/local/bin/gitlab-stats -g \u003cgroupID\u003e -o stats-`date \"+%Y-%m\" -d \"1 day ago\"`.png\n```\n\n\n# Usage\n\n```\n$ gitlab-stats -h\nUsage of gitlab-stats:\n  -d string\n        Debug level (info,warn,debug) (default \"error\")\n  -g int\n        Group ID to get issues from (not compatible with -p option)\n  -o string\n        file path to generate statistic graph (do not fulfill DB)\n  -p int\n        Project ID to get issues from\n  -s int\n        since (default 6)\n  -v    Get version\n```\n\n### System Dependencies\n\nThis project uses CGO to interface with SQLite, so you need the SQLite development libraries installed.\n\n**Ubuntu/Debian:**\n```bash\nsudo apt install sqlite3 sqlite3-tools libsqlite3-dev\n```\n\n**Red Hat/CentOS/Fedora:**\n```bash\nsudo yum install sqlite sqlite-devel\n# or on newer systems:\nsudo dnf install sqlite sqlite-devel\n```\n\n# Development\n\n## prerequisites\n\nThis project is using :\n\n* golang\n* [task for development](https://taskfile.dev/#/)\n* [goreleaser](https://goreleaser.com/)\n* [pre-commit](https://pre-commit.com/)\n\nThere are hooks executed in the precommit stage. Once the project cloned on your disk, please install pre-commit:\n\n```\nbrew install pre-commit\n```\n\nInstall tools:\n\n```\ntask install-prereq\n```\n\nAnd install the hooks:\n\n```\ntask install-pre-commit\n```\n\nIf you like to launch manually the pre-commmit hook:\n\n```\ntask pre-commit\n```\n\n## 🕐 Project Status: Low Priority\n\nThis project is not under active development. While the project remains functional and available for use, please be aware of the following:\n\n### What this means:\n- **Response times will be longer** - Issues and pull requests may take weeks or months to be reviewed\n- **Updates will be infrequent** - New features and non-critical bug fixes will be rare\n- **Support is limited** - Questions and discussions may not receive timely responses\n\n### We still welcome:\n- 🐛 **Bug reports** - Critical issues will eventually be addressed\n- 🔧 **Pull requests** - Well-tested contributions are appreciated\n- 💡 **Feature requests** - Ideas will be considered for future development cycles\n- 📖 **Documentation improvements** - Always helpful for the community\n\n### Before contributing:\n1. **Check existing issues** - Your concern may already be documented\n2. **Be patient** - Responses may take considerable time\n3. **Be self-sufficient** - Be prepared to fork and maintain your own version if needed\n4. **Keep it simple** - Small, focused changes are more likely to be merged\n\n### Alternative options:\nIf you need active support or rapid development:\n- Look for actively maintained alternatives\n- Reach out to discuss taking over maintenance\n\nWe appreciate your understanding and patience. This project remains important to us, but current priorities limit our ability to provide regular updates and support.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgaunet%2Fgitlab-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgaunet%2Fgitlab-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgaunet%2Fgitlab-stats/lists"}