feat: Add support for Enterprise Team Members APIs by Not-Dhananjay-Mishra · Pull Request #3873 · google/go-github

@Not-Dhananjay-Mishra

Related: #3860

This PR adds support for Enterprise Team Members

  • GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships
  • POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add
  • POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove
  • GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}
  • PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}
  • DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}

@Not-Dhananjay-Mishra

@Not-Dhananjay-Mishra

@codecov

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.43%. Comparing base (06ab3a2) to head (2671a0b).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3873      +/-   ##
==========================================
+ Coverage   92.40%   92.43%   +0.03%     
==========================================
  Files         200      200              
  Lines       14382    14472      +90     
==========================================
+ Hits        13289    13377      +88     
- Misses        894      895       +1     
- Partials      199      200       +1     

☔ 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.

gmlewis

Choose a reason for hiding this comment

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

@Not-Dhananjay-Mishra

@Not-Dhananjay-Mishra

@gmlewis Thanks for the suggestions, I have fixed them.

gmlewis

stevehipwell

Choose a reason for hiding this comment

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

LGTM

@gmlewis