Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Metadata question

未关闭
#4,334 11 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
冷清
技术栈
go, openapi

调研方向

首先审查 OpenAPI 元数据以及 issue 中列出的五个 ActionsService 方法,然后将它们与 GHES v3.7 文档和 #4335 中提出的修复进行比较。完成的标准是回答有关移除和弃用 endpoint 的问题,并记录更新受影响函数的明确流程。

由索引模型根据 Issue 内容生成。

描述

I happened to be re-implementing some acceptance tests the other day and while doing so I noticed that the signatures for the actions secret functions didn't look right. Tracking this back into the OpenAPI doc shows that the 5 functions below are tracking APIs from GHES v3.7 that are no longer documented (see #4335 for my proposed fix for this specific case).

  • ActionsService.GetEnvPublicKey
  • ActionsService.ListEnvSecrets
  • ActionsService.GetEnvSecret
  • ActionsService.CreateOrUpdateEnvSecret
  • ActionsService.DeleteEnvSecret

Looking at the OpenAPI metadata I was expecting these endpoints to be marked as deprecated, but this doesn't appear to be the case. I can also see unused endpoints from old GHES versions still in the metadata.

My primary questions are as follows:

  • Should endpoints be removed once they're no longer supported by GitHub and are no longer in use (e.g. there are some projects v1 endpoints still in there)?
  • Should endpoints be marked as deprecated once they're no longer supported by GitHub (e.g. deprecated or not in supported GHES versions)?
  • If the endpoints were correctly marked as deprecated would this automatically mark the functions as deprecated?
    • If this is the case do we have a process for updating functions that just need to change endpoint and/or signature?
主要语言
Go
星标
11.3k
派生
2.5k
平均合并
1 天 16 小时
30 天内合并 PR
51

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

google/go-github 的其他 Issue

查看 google/go-github 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。