fix: DeleteSocialAccounts and AddSocialAccounts of UsersService by Not-Dhananjay-Mishra · Pull Request #3922 · google/go-github

@Not-Dhananjay-Mishra

Fixes: #3921
Added an internal struct socialAccountsRequest and use it to send the request body instead of passing accountURLs directly, which previously caused an Invalid input error.
Since the struct is internal and the public method signature remains unchanged, this change introduces no breaking API changes.

@Not-Dhananjay-Mishra

@codecov

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.45%. Comparing base (5dc0050) to head (1f5eb10).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3922      +/-   ##
==========================================
+ Coverage   92.44%   92.45%   +0.01%     
==========================================
  Files         203      203              
  Lines       14925    14954      +29     
==========================================
+ Hits        13797    13826      +29     
  Misses        926      926              
  Partials      202      202              

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

alexandear

@Not-Dhananjay-Mishra

gmlewis

Choose a reason for hiding this comment

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