Skip to content

Conversation

@Not-Dhananjay-Mishra
Copy link
Contributor

Related: #3860

This PR adds support for Enterprise Teams

  • GET /enterprises/{enterprise}/teams
  • POST /enterprises/{enterprise}/teams
  • GET /enterprises/{enterprise}/teams/{team_slug}
  • PATCH /enterprises/{enterprise}/teams/{team_slug}
  • DELETE /enterprises/{enterprise}/teams/{team_slug}

}

// EnterpriseTeamCreateOrUpdateRequest is used to create or update an enterprise team.
type EnterpriseTeamCreateOrUpdateRequest struct {
Copy link
Contributor Author

@Not-Dhananjay-Mishra Not-Dhananjay-Mishra Dec 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This request struct has one field, sync_to_organizations, which isn’t added yet.
Its description says “Retired” Should I add it or leave it out?

Image

Similarly, the EnterpriseTeam has two fields, sync_to_organizations and group_name, which are marked as Retired.

    "group_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Retired: this field will not be returned with GHEC enterprise teams.",
      "examples": [
        "Justice League"
      ]
    },
    "sync_to_organizations": {
      "type": "string",
      "description": "Retired: this field will not be returned with GHEC enterprise teams.",
      "examples": [
        "disabled | all"
      ]
    },

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, let's please not add a field that the GitHub official docs say is "Retired".

@gmlewis gmlewis changed the title Add support for Enterprise Team APIs feat: Add support for Enterprise Team APIs Dec 6, 2025
@codecov
Copy link

codecov bot commented Dec 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.38%. Comparing base (66f826c) to head (f44befc).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3861      +/-   ##
==========================================
+ Coverage   92.36%   92.38%   +0.02%     
==========================================
  Files         199      200       +1     
  Lines       14308    14360      +52     
==========================================
+ Hits        13215    13267      +52     
  Misses        894      894              
  Partials      199      199              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @Not-Dhananjay-Mishra!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

cc: @stevehipwell - @alexandear - @zyfy29

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NeedsReview PR is awaiting a review before merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants