Consistent naming for enterprise & organization scoped functions
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先盘点 issue 中讨论的企业级和组织级作用域函数,并审查它们当前的命名模式。在更改名称之前,先定义有效的作用域和主体约定,然后验证所得 API 是否在所有受影响的函数中一致应用。
由索引模型根据 Issue 内容生成。
描述
I'd like to see a consistent naming convention used for enterprise and organization scoped functions that reflects the significance of the scoping. My suggestion is that we adopt the pattern <VERB><SCOPE><SUBJECT> which as a very simple example would look something like GetOrganizationThing. Scope and subject are an overlapping concept so we will need to define valid scopes that are linear (possibly just enterprise and organization). Subject is a more of an art than a science but we will still want to keep the most significant information at the beginning of the function name.
As an example of an alternative but supporting pattern; in a greenfield API design these scopes could have been structural with a pattern such as client.organization.GetThing instead of client.GetOrganizationThing.
- 主要语言
- Go
- 星标
- 11.3k
- 派生
- 2.6k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 43
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/go-github 的其他 Issue
-
http.Client.Timeout is ignored by redirect-aware requests可能已有人在做 @sb123sb123 于 19 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 68/100
维护者通常 1 天内回复
-
Add Copilot content exclusion set/get enterprise and org set endpoints可能已有人在做 @Tens1des 于 33 天前认领。 未关闭
google/go-github#4526 · 1 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
Add Copilot custom agents enterprise endpoints可能已有人在做 @Tens1des 于 33 天前认领。 未关闭
google/go-github#4524 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
Repository ruleset rule type `code_quality` is not modelled可能已有人在做 @etifontaine 于 36 天前认领。 未关闭
google/go-github#4520 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Including an enterprise team as a reviewer for an environment results an unmarshal error可能已有人在做 @JWilkinsonMB 于 52 天前认领。 未关闭
google/go-github#4457 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
bug go
难度 2/5 1-3 小时 新手友好度 82/100
genkit-ai/genkit#6761 · 1 条评论 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 87/100
维护者通常 2 天内回复
-
ready
难度 2/5 1-3 小时 新手友好度 92/100
kubeflow/pipelines#14784 · 1 条评论 ·
维护者通常 2 天内回复
-
bug frontend good first issue
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
trust: update-propagation-directive requires developer mode while add and remove do not可能已有人在做 @bhuvan-somisetty 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复