feat: Add support for remaining Codespaces APIs by Not-Dhananjay-Mishra · Pull Request #3886 · google/go-github

@Not-Dhananjay-Mishra

Relates: #2362
This PR adds support for remaining endpoint of Codespaces

  • GET /repos/{owner}/{repo}/codespaces/devcontainers
  • GET /repos/{owner}/{repo}/codespaces/new
  • GET /repos/{owner}/{repo}/codespaces/permissions_check
  • POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces
  • POST /user/codespaces
  • GET /user/codespaces/{codespace_name}
  • PATCH /user/codespaces/{codespace_name}
  • POST /user/codespaces/{codespace_name}/exports
  • GET /user/codespaces/{codespace_name}/exports/{export_id}
  • POST /user/codespaces/{codespace_name}/publish

@Not-Dhananjay-Mishra

@codecov

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.54%. Comparing base (8ca48dd) to head (1b244af).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3886      +/-   ##
==========================================
+ Coverage   92.48%   92.54%   +0.05%     
==========================================
  Files         200      200              
  Lines       14564    14679     +115     
==========================================
+ Hits        13469    13584     +115     
  Misses        895      895              
  Partials      200      200              

☔ 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

…issions now returns a struct

@Not-Dhananjay-Mishra

@gmlewis, Thanks for the suggestions! Fixed 👍

gmlewis

Choose a reason for hiding this comment

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

@Not-Dhananjay-Mishra

gmlewis

@Not-Dhananjay-Mishra

alexandear

Choose a reason for hiding this comment

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

Left some suggestions. Feel free to ask questions.

@Not-Dhananjay-Mishra

@Not-Dhananjay-Mishra

alexandear

@Not-Dhananjay-Mishra

@Not-Dhananjay-Mishra

gmlewis

alexandear

@gmlewis