{"id":50336953,"url":"https://github.com/studyzy/gongfeng-sdk-go","last_synced_at":"2026-05-29T14:01:30.360Z","repository":{"id":358036581,"uuid":"1239651834","full_name":"studyzy/gongfeng-sdk-go","owner":"studyzy","description":"腾讯工蜂 https://code.tencent.com/help/api/prepare 封装的SDK","archived":false,"fork":false,"pushed_at":"2026-05-15T11:24:05.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-15T12:07:08.145Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/studyzy.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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-15T09:55:34.000Z","updated_at":"2026-05-15T11:08:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/studyzy/gongfeng-sdk-go","commit_stats":null,"previous_names":["studyzy/gongfeng-sdk-go"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/studyzy/gongfeng-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studyzy%2Fgongfeng-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studyzy%2Fgongfeng-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studyzy%2Fgongfeng-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studyzy%2Fgongfeng-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/studyzy","download_url":"https://codeload.github.com/studyzy/gongfeng-sdk-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/studyzy%2Fgongfeng-sdk-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33655441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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":[],"created_at":"2026-05-29T14:01:29.194Z","updated_at":"2026-05-29T14:01:30.339Z","avatar_url":"https://github.com/studyzy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gongfeng-sdk-go\n\n腾讯工蜂 REST API 的 Go SDK，完整覆盖工蜂 v3 API。\n\n## 特性\n\n- 基于标准库自建 HTTP Client，无重型第三方依赖\n- 按资源拆分 Service，每个 API 资源独立文件\n- 所有方法支持 `context.Context`\n- 统一的分页、认证、错误处理\n- 函数式选项模式（`WithBaseURL`、`WithHTTPClient`）\n\n## 安装\n\n```bash\ngo get github.com/studyzy/gongfeng-sdk-go\n```\n\n## 快速开始\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\n\tgongfeng \"github.com/studyzy/gongfeng-sdk-go\"\n)\n\nfunc main() {\n\tclient, err := gongfeng.NewClient(\"your-private-token\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// 获取项目列表\n\tprojects, _, err := client.Projects.ListProjects(context.Background(), nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfor _, p := range projects {\n\t\tfmt.Printf(\"%d: %s\\n\", p.ID, p.PathWithNamespace)\n\t}\n}\n```\n\n## 自定义配置\n\n```go\n// 连接私有部署的工蜂实例\nclient, err := gongfeng.NewClient(\"token\",\n\tgongfeng.WithBaseURL(\"https://git.example.com/\"),\n)\n```\n\n## 支持的 API\n\n| Service | 说明 |\n| --- | --- |\n| `Projects` | 项目 CRUD、搜索、成员管理 |\n| `Groups` | 项目组 CRUD、成员管理 |\n| `Branches` | 分支创建、删除、保护分支 |\n| `Tags` | Tag 列表、创建、删除 |\n| `MergeRequests` | MR 创建、合并、评论、变更查询 |\n| `Commits` | 提交查询、Diff、评论、Ref |\n| `Repositories` | 存档下载、文件树、文件 CRUD、分支比较 |\n| `Issues` | 缺陷 CRUD |\n| `Notes` | MR/Issue 评论 CRUD |\n| `Labels` | 标签 CRUD |\n| `Milestones` | 里程碑 CRUD |\n| `Users` | 用户查询 |\n| `Namespaces` | 命名空间列表与搜索 |\n| `Releases` | 版本发布 CRUD |\n| `Webhooks` | 回调钩子 CRUD |\n| `Forks` | Fork 项目 |\n| `Watchers` | 项目关注/取消关注 |\n| `Session` | 获取私有令牌 |\n| `CommitStatuses` | 提交检测（CI 状态） |\n| `Reviews` | MR 评审 + Commit 评审 |\n\n## API 文档\n\n详细的工蜂 REST API 文档见 [docs/api/](docs/api/README.md)。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudyzy%2Fgongfeng-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstudyzy%2Fgongfeng-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstudyzy%2Fgongfeng-sdk-go/lists"}