Skip to content

Conversation

Copy link

Copilot AI commented Jan 16, 2026


Before the change?

After the change?

  • Comprehensive status report documenting all 45 review comments (42 resolved, 3 unresolved)
  • Clear prioritization and actionable recommendations for the 3 remaining issues:
    1. Read-after-Create/Update pattern removal (high priority) - already fixed in fork PR refactor(enterprise_team): address PR review feedback #6
    2. Empty description field handling (low priority) - conditional check needed
    3. Data source description accuracy (medium priority) - documentation fix

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

Report Contents

File: PR_3008_UNRESOLVED_COMMENTS_STATUS.md

Sections:

  • Executive summary with key statistics
  • Detailed analysis of 3 unresolved comments with code examples and suggested fixes
  • Categorized summary of 42 resolved comments
  • Critical path to merge with priority ordering
  • Reviewer activity breakdown
  • References to related work in fork PR refactor(enterprise_team): address PR review feedback #6

The report enables quick assessment of PR readiness and provides clear next steps for the author.

Original prompt

Review unresolved PR comments status

Check unresolved comments in PR integrations#3008 and report current status.

Created from VS Code via the GitHub Pull Request extension.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

github-actions bot and others added 25 commits January 10, 2026 12:10
Add support for managing GitHub Enterprise Teams (enterprise-level teams):

Resources:
- github_enterprise_team: create/update/delete enterprise teams
- github_enterprise_team_membership: manage team members
- github_enterprise_team_organizations: assign teams to organizations

Data sources:
- github_enterprise_team: lookup by slug or ID
- github_enterprise_teams: list all enterprise teams
- github_enterprise_team_membership: check user membership
- github_enterprise_team_organizations: list assigned orgs

Note: These endpoints require GitHub Enterprise Cloud with a classic PAT
that has enterprise admin permissions.
- Add ValidateDiagFunc to required schema fields for early validation in plan phase
- Add validation import to resource_github_enterprise_team_membership
- This allows users to get validation errors during plan instead of apply
- Add Description field to github_enterprise_team resource schema
- Add Description field to github_enterprise_team_membership resource schema
- Descriptions match the documentation pages and will be used for generated docs
- try EnterpriseService.GetTeam via reflection to stay forward-compatible with upcoming SDK release
- keep REST fallback when SDK method is missing
- no behavior change; builds with current v67 while ready for v81
- move required field emptiness checks into ValidateDiagFunc
- remove redundant runtime empty checks in Read
- keep behavior unchanged, but surface errors during plan
…rg data sources/resources

- add top-level Description to enterprise team org data source and resource
- add ValidateDiagFunc to required fields and drop runtime empty checks
- add Description and validation to enterprise teams listing data source
- Replace custom API implementations with go-github v81 SDK functions
- Use EnterpriseService methods: CreateTeam, GetTeam, UpdateTeam, DeleteTeam,
  ListTeams, ListAssignments, AddMultipleAssignments, RemoveMultipleAssignments,
  GetTeamMembership, AddTeamMember, RemoveTeamMember
- Change ID separator from '/' to ':' to reuse existing util.go functions
- Move single-use helper functions to their respective files
- Simplify util_enterprise_teams.go to only findEnterpriseTeamByID
- Update test files to use testAccConf patterns
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Add top-level Description field to data source
- Remove redundant ConflictsWith from team_id (ExactlyOneOf on slug is sufficient)
…ality

Address code review feedback from @deiga and improve enterprise team resources.

## Changes

### Schema improvements
- Separate enterprise_team field into team_slug and team_id with ExactlyOneOf
  validation for membership and organizations resources
- Align data source naming with resources (enterprise_team → team_slug)
- Fix ExactlyOneOf in data_source_github_enterprise_team (must include both fields)
- Add validation for slug field in data source

### Code quality
- Remove Read-after-Create/Update pattern, set computed fields directly from API response
- Remove unused findEnterpriseTeamBySlugOrID function
- Move shared helpers to util_enterprise_teams.go
- Use "/" as ID separator instead of ":" (team slugs contain ":")
- Handle errors properly in Import function

### Bug fixes
- Add 404 handling in Delete for membership and organizations resources
- Fix group_id clearing (now sends empty string to API)
- Preserve team_id in state when user configures via team_id
- Fix Read drift when user configures team_id instead of team_slug

### Testing
- Eliminate redundant testCase wrapper pattern in tests
- Add MinItems validation test for organization_slugs
- All 8 acceptance tests passing

### Documentation
- Update docs for new team_slug/team_id schema
Co-authored-by: vmvarela <11040851+vmvarela@users.noreply.github.com>
Copilot AI changed the title [WIP] Review unresolved PR comments status Review unresolved PR comments status for upstream PR #3008 Jan 16, 2026
Copilot AI requested a review from vmvarela January 16, 2026 10:54
@vmvarela vmvarela force-pushed the enterprise-teams branch 2 times, most recently from 1bb8034 to 4d9a880 Compare January 19, 2026 05:13
@vmvarela vmvarela closed this Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants