Cannot add teams to repo.yml
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- github, javascript
Hướng nghiên cứu
Bắt đầu với ví dụ .github/repos/Prequal.yml và tái hiện việc áp dụng một team hiện có hoặc một team đã được liên kết với repository trong app probot/settings tự lưu trữ. Theo dõi entry point thêm team và xác nhận rằng việc áp dụng cấu hình hoàn tất mà không gặp lỗi 422 của GitHub Enterprise.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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]
- Ngôn ngữ chính
- JavaScript
- Star
- 942
- Fork
- 238
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github-community-projects/safe-settings
-
Teams: teams with organization-role access show up as deletionsCó thể đã có người làm @TovaBecker đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
github-community-projects/safe-settings#1144 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github-community-projects/safe-settings#1143 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github-community-projects/safe-settings#1135 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
github-community-projects/safe-settings#1134 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
environments: additive_plugins is ignored, undeclared environments are deletedCó thể đã có người làm @yaunj đã nhận 12 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
github-community-projects/safe-settings#1133 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của github-community-projects/safe-settings
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
cytoscape/cytoscape.js#3597 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
priority: low server testing
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
blamechris/chroxy#9277 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
sunososobro-hub/cloudball#191 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
microsoft/playwright#44289 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Wire ISO post: has() accepts text values such as an empty string, true or 0x1A for wire numbersĐang mởarea:post effort:low enhancement P7 source:agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày