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

app_installations reports an error on every repo or suborg change when the plugin is not configured

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
64/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript
领域
backend

调研方向

从 lib/settings.js 开始,找到 syncSelectedRepos 在 hasChangedConfigs 为真时调用 syncAppInstallations 的位置,并定位需要使用企业认证客户端的地方。添加一个守卫,使插件在组织、子组织或仓库级别都不存在 app_installations 配置时提前返回,即使仓库发生了变化。完成标准是:修改了仓库文件、但既没有企业安装也没有 app_installations 配置的 PR 或 push 能够成功结束,并且配置存在时的原有路径仍然正常工作。

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

描述

Version: 3.0.0

syncSelectedRepos always calls syncAppInstallations with the changed repos (lib/settings.js). Because hasChangedConfigs is true, the "No app_installations config found, skipping" early return never applies. Without an enterprise installation, every PR or push that touches a repo file fails with:

Cannot sync app installations: enterprise-authenticated client not available for '<enterprise>'.

This happens even when no app_installations config exists at any level. Settings are still applied, but the check run concludes failure.

Expected: skip the plugin when no app_installations is configured at the org, suborg, or repo level, even when repos changed.

Workaround: add disable_plugins: [app_installations] to deployment-settings.yml.

主要语言
JavaScript
星标
924
派生
227
平均合并
6 小时 8 分钟
30 天内合并 PR
15

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

github-community-projects/safe-settings 的其他 Issue

查看 github-community-projects/safe-settings 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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