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

Add support for Actions cache retention and storage limits for an organization

未关闭 适合新手
#4,596 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
github, go
领域
api

调研方向

从 actions_cache.go 开始,阅读现有的缓存使用方法,并将其结构与所链接 GitHub 文档中的组织级 REST 端点进行比较。添加用于保留和存储限制的四个指定名称的 ActionsService 方法,然后验证每个方法都使用文档所述的 GET 或 PUT 端点,并通过相关的软件包测试。

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

描述

GitHub added endpoints for the Actions cache retention limit and storage limit at the organization level, but go-github doesn't cover them yet:

  • GET/PUT /organizations/{org}/actions/cache/retention-limit
  • GET/PUT /organizations/{org}/actions/cache/storage-limit

Docs: https://docs.github.com/rest/actions/cache#get-github-actions-cache-retention-limit-for-an-organization

I'd like to add ActionsService.GetCacheRetentionLimitForOrg / SetCacheRetentionLimitForOrg and GetCacheStorageLimitForOrg / SetCacheStorageLimitForOrg alongside the existing cache usage methods in actions_cache.go. I'm happy to send a PR.

主要语言
Go
星标
11.3k
派生
2.5k
平均合并
1 天 2 小时
30 天内合并 PR
41

环境准备

从这里开始

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

google/go-github 的其他 Issue

查看 google/go-github 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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