Cannot add teams to repo.yml
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- github, javascript
調査の方向性
.github/repos/Prequal.yml の例から始め、セルフホスト型の probot/settings アプリで、既存のチームまたはリポジトリにすでに関連付けられているチームを適用する動作を再現します。チーム追加のエントリーポイントを追跡し、GitHub Enterprise 422 エラーが発生せずに設定の適用が完了することを確認します。
索引モデルが issue の本文から書いたものです。
説明
Problem Description
What's Happening
We're managing repository-level team permissions using individual repo YAML files (e.g., Mobile.yml, Web.yml, infra.yml) under the .github/repos directory. We do not maintain any team configurations in settings.yml.
The intent is to explicitly grant certain teams (like all engineering teams) permissions to deploy to non-prod environments. For example:
# .github/repos/Prequal.yml
repository:
name: Prequal
teams:
- name: SRE
permission: maintain
- name: "Engineering Members"
permission: push
However, when applying these settings, we encounter the following error:
Error adding team: 422
API response:
{
"message": "Validation Failed",
"errors": [
{
"resource": "Team",
"code": "unprocessable",
"field": "data",
"message": "Name must be unique for this org"
}
],
"documentation_url": "https://docs.github.com/rest/teams/teams#create-a-team",
"status": "422"
}
This seems to happen when the team already exists or is already associated with the repository.
Expected Behavior
We want to know if there's a way to skip adding a team if it already exists or is already associated with the repository, to avoid the 422 error. Ideally, the settings app should be idempotent in this case.
Context
- GitHub App: Self-hosted instance of
probot/settings - Platform: GitHub Enterprise (EMU)
- Versions:
probot/settings: [please insert version]- GitHub Enterprise: [please insert version]
- 主要言語
- JavaScript
- スター
- 942
- フォーク
- 238
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github-community-projects/safe-settings のほかの issue
-
Teams: teams with organization-role access show up as deletions対応中かも @TovaBecker が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
github-community-projects/safe-settings#1144 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github-community-projects/safe-settings#1143 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github-community-projects/safe-settings#1135 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
github-community-projects/safe-settings#1134 ·
メンテナーはふだん 2 日以内に返信
-
environments: additive_plugins is ignored, undeclared environments are deleted対応中かも @yaunj が 12 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github-community-projects/safe-settings#1133 ·
メンテナーはふだん 2 日以内に返信
github-community-projects/safe-settings の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cytoscape/cytoscape.js#3597 ·
メンテナーはふだん 5 日以内に返信
-
priority: low server testing
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
blamechris/chroxy#9277 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
sunososobro-hub/cloudball#191 ·
メンテナーはふだん 1 日以内に返信
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
microsoft/playwright#44289 ·
メンテナーはふだん 1 日以内に返信
-
Wire ISO post: has() accepts text values such as an empty string, true or 0x1A for wire numbersオープンarea:post effort:low enhancement P7 source:agent
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信