{"id":13522389,"url":"https://github.com/eryajf/gitlabCodeSearch","last_synced_at":"2025-03-31T22:31:21.755Z","repository":{"id":191942604,"uuid":"686038665","full_name":"eryajf/gitlabCodeSearch","owner":"eryajf","description":"🔎 使用关键字搜索所有gitlab项目","archived":false,"fork":false,"pushed_at":"2024-02-23T15:36:11.000Z","size":48,"stargazers_count":13,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-01T07:21:55.678Z","etag":null,"topics":["codesearch","eryajf","gitlab","kooder"],"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/eryajf.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}},"created_at":"2023-09-01T15:35:21.000Z","updated_at":"2024-10-21T02:17:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"f459701c-ee4b-4bad-a423-92185b312ca4","html_url":"https://github.com/eryajf/gitlabCodeSearch","commit_stats":null,"previous_names":["eryajf/gitlabcodesearch"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eryajf%2FgitlabCodeSearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eryajf%2FgitlabCodeSearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eryajf%2FgitlabCodeSearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eryajf%2FgitlabCodeSearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eryajf","download_url":"https://codeload.github.com/eryajf/gitlabCodeSearch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222683219,"owners_count":17022462,"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":["codesearch","eryajf","gitlab","kooder"],"created_at":"2024-08-01T06:00:46.531Z","updated_at":"2024-11-02T06:31:19.203Z","avatar_url":"https://github.com/eryajf.png","language":"Go","funding_links":[],"categories":["CodeSearch","Go"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003egitlabCodeSearch\u003c/h1\u003e\n\n[![Auth](https://img.shields.io/badge/Auth-eryajf-ff69b4)](https://github.com/eryajf)\n[![GitHub Pull Requests](https://img.shields.io/github/stars/eryajf/gitlabCodeSearch)](https://github.com/eryajf/gitlabCodeSearch/stargazers)\n[![HitCount](https://views.whatilearened.today/views/github/eryajf/gitlabCodeSearch.svg)](https://github.com/eryajf/gitlabCodeSearch)\n[![GitHub license](https://img.shields.io/github/license/eryajf/gitlabCodeSearch)](https://github.com/eryajf/gitlabCodeSearch/blob/main/LICENSE)\n[![](https://img.shields.io/badge/Awesome-MyStarList-c780fa?logo=Awesome-Lists)](https://github.com/eryajf/awesome-stars-eryajf#readme)\n\n\u003cp\u003e 🌉 🔎 使用关键字搜索所有gitlab项目,并将结果输出为Excel 🌉\u003c/p\u003e\n\n\u003cimg src=\"https://camo.githubusercontent.com/82291b0fe831bfc6781e07fc5090cbd0a8b912bb8b8d4fec0696c881834f81ac/68747470733a2f2f70726f626f742e6d656469612f394575424971676170492e676966\" width=\"800\"  height=\"3\"\u003e\n\n\u003c/div\u003e\n\n日常工作中，我们在做一些变更的时候，经常会遇到对 gitlab 所有项目检索某个关键字的需求，这个工具，正是为解决这一需求而生的。\n\n## 如何使用\n\n先创建 gitlab 的 token，这一步就不介绍如何创建了。注意此 token 需要给：api 和 read_api 两个权限。\n\n然后你可以通过配置文件，或者环境变量的方式将配置加载到程序当中。\n\n通过环境变量能够快速运行项目，因此这里强烈推荐你使用此方式：\n\n如果你熟悉 go 语言，则可以自己编译二进制，如果不熟悉，也可以直接在 releases 当中下载已经编译好的二进制。\n\n```sh\ngcs search -u 'https://gitlab.xxx.com' -t 'xxxxxxxxxxx' -w '测试'\n```\n\n效果如下：\n\n![](https://cdn.jsdelivr.net/gh/eryajf/tu/img/image_20230902_000537.png)\n\n运行成功以后，会自动在项目运行目录下将结果输出为 Excel。\n\n你也可以直接通过 docker 来运行：\n\n```sh\ndocker run -it registry.cn-hangzhou.aliyuncs.com/ali_eryajf/gcs gcs search -u 'https://gitlab.xxx.com' -t 'xxxxxxxxxxx' -w '测试'\n```\n\n如果你在使用过程中遇到问题，欢迎提交 issue。如果你还有其他需求，以及其他想法，欢迎提交 PR。\n\n- 🎉 2024年2月23日更新：\n  - 现在支持指定多个关键字了，用法如下：`gcs search -u 'https://gitlab.xxx.com' -t 'xxxxxxxxxxx' -w 'a,b,c'`\n\n## 感谢开源\n\n此框架建立在如下几个优秀的开源项目之上：\n\n- [gopkg.in/yaml.v3 v3.0.1](https://github.com/go-yaml/yaml)\n- [github.com/spf13/cobra v1.2.1](https://github.com/spf13/cobra)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feryajf%2FgitlabCodeSearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feryajf%2FgitlabCodeSearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feryajf%2FgitlabCodeSearch/lists"}