{"id":31287732,"url":"https://github.com/jinghaihan/gitlab-repo-inspector","last_synced_at":"2026-01-20T17:35:00.289Z","repository":{"id":314874188,"uuid":"1056898936","full_name":"jinghaihan/gitlab-repo-inspector","owner":"jinghaihan","description":"A tool to scan GitLab groups and subgroups, list all repositories, detect monorepos, and fetch the latest tags or releases.","archived":false,"fork":false,"pushed_at":"2025-09-15T10:58:01.000Z","size":543,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-15T11:25:37.400Z","etag":null,"topics":["cli","gitlab","inspector","maven","monorepo","pnpm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jinghaihan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-15T02:13:17.000Z","updated_at":"2025-09-15T10:58:01.000Z","dependencies_parsed_at":"2025-09-15T11:25:41.046Z","dependency_job_id":"85e343e7-09b8-44d6-b2b1-53a3dd6081d2","html_url":"https://github.com/jinghaihan/gitlab-repo-inspector","commit_stats":null,"previous_names":["jinghaihan/gitlab-repo-inspector"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/jinghaihan/gitlab-repo-inspector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinghaihan%2Fgitlab-repo-inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinghaihan%2Fgitlab-repo-inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinghaihan%2Fgitlab-repo-inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinghaihan%2Fgitlab-repo-inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinghaihan","download_url":"https://codeload.github.com/jinghaihan/gitlab-repo-inspector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinghaihan%2Fgitlab-repo-inspector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275614581,"owners_count":25496807,"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-09-17T02:00:09.119Z","response_time":84,"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":["cli","gitlab","inspector","maven","monorepo","pnpm"],"created_at":"2025-09-24T11:05:20.085Z","updated_at":"2025-09-24T11:05:24.283Z","avatar_url":"https://github.com/jinghaihan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitlab-repo-inspector\n\n[![npm version][npm-version-src]][npm-version-href]\n[![JSDocs][jsdocs-src]][jsdocs-href]\n[![License][license-src]][license-href]\n\nA tool to scan GitLab groups and subgroups, list all repositories, detect monorepos, and fetch the latest tags or releases.\n\n```bash\nnpx gitlab-repo-inspector [mode] [options]\n```\n\n\u003cp align='center'\u003e\n\u003cimg src='./assets/help.png' /\u003e\n\u003c/p\u003e\n\n## Features\n\n### Repository Discovery\n- Scans GitLab groups and subgroups recursively\n- Fetches repository metadata including descriptions and latest tags\n- Supports both GitLab.com and self-hosted GitLab instances\n\n### Monorepo Detection\nThe tool automatically detects and analyzes monorepo structures:\n\n**pnpm Workspaces:**\n- Reads `pnpm-workspace.yaml` to discover workspace packages\n- Extracts package information from `package.json` files\n- Supports workspace patterns like `packages/*`\n\n**Maven Projects:**\n- Parses `pom.xml` files to discover multi-module projects\n- Recursively analyzes nested modules\n- Extracts artifact information and descriptions\n\n## Configuration\n\nCreate a `gitlab-repo-inspector.config.ts` file to customize default settings:\n\n```ts\nimport { defineConfig } from 'gitlab-repo-inspector'\n\nexport default defineConfig({\n  cwd: process.cwd(),\n  registry: 'https://gitlab.com',\n  apiVersion: 'v4',\n  projectType: 'pnpm',\n  token: 'access-token',\n  perPage: 500,\n  group: 'gitlab-group',\n  subgroups: true,\n  archived: false,\n  monorepo: true,\n  preRelease: false,\n  ignoreGroups: ['legacy'],\n  ignoreRepos: ['decrypted-repo'],\n  ignorePackages: ['internal-packages'],\n  ignorePatterns: ['playground', 'examples/*'],\n  json: 'gitlab-repo-inspector.json',\n  merge: false\n})\n```\n\n**Configuration Options:**\n- `cwd`: Current working directory\n- `registry`: GitLab instance URL\n- `apiVersion`: API version (default: 'v4')\n- `projectType`: Project type ('pnpm' or 'maven')\n- `token`: GitLab access token\n- `perPage`: Number of repositories per page (default: 500)\n- `group`: Default group to scan\n- `subgroups`: Include subgroups in scan (default: true)\n- `archived`: Include archived repositories (default: false)\n- `monorepo`: Enable monorepo detection (default: true)\n- `preRelease`: Include pre-release versions (default: true)\n- `ignoreGroups`: Array of group names to ignore\n- `ignoreRepos`: Array of repository names to ignore\n- `ignorePackages`: Array of package names to ignore\n- `ignorePatterns`: Array of monorepo patterns to ignore\n- `json`: Output JSON file name (default: 'gitlab-repo-inspector.json')\n- `merge`: Merge with existing JSON file (default: false)\n\n## Authentication\n\nThe tool requires a GitLab access token with appropriate permissions:\n\n1. Go to GitLab → Settings → Access Tokens\n2. Create a token with `read_repository` and `read_api` scopes\n3. Provide the token via:\n   - `--token` command line option\n   - Configuration file\n   - Interactive prompt (if not provided)\n\n## License\n\n[MIT](./LICENSE) License © [jinghaihan](https://github.com/jinghaihan)\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/gitlab-repo-inspector?style=flat\u0026colorA=080f12\u0026colorB=1fa669\n[npm-version-href]: https://npmjs.com/package/gitlab-repo-inspector\n[npm-downloads-src]: https://img.shields.io/npm/dm/gitlab-repo-inspector?style=flat\u0026colorA=080f12\u0026colorB=1fa669\n[npm-downloads-href]: https://npmjs.com/package/gitlab-repo-inspector\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/gitlab-repo-inspector?style=flat\u0026colorA=080f12\u0026colorB=1fa669\u0026label=minzip\n[bundle-href]: https://bundlephobia.com/result?p=gitlab-repo-inspector\n[license-src]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat\u0026colorA=080f12\u0026colorB=1fa669\n[license-href]: https://github.com/jinghaihan/gitlab-repo-inspector/LICENSE\n[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat\u0026colorA=080f12\u0026colorB=1fa669\n[jsdocs-href]: https://www.jsdocs.io/package/gitlab-repo-inspector\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinghaihan%2Fgitlab-repo-inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinghaihan%2Fgitlab-repo-inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinghaihan%2Fgitlab-repo-inspector/lists"}