Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repos/releases improvements #666

Merged
merged 6 commits into from
Jul 26, 2024
Merged

Conversation

loispostula
Copy link
Contributor

Blocked by #665
fixes #663
fixes #96

Implements:

  • PATCH /repos/{owner}/{repo}/releases/assets/{id}: Update a release asset
  • DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}: Delete a release asset
  • GET /repos/{owner}/{repo}/releases/{id}: Get a release by id
  • DELETE /repos/{owner}/{repo}/releases/{id}: Delete a release
  • GET /repos/{owner}/{repo}/releases/{release_id}/assets: Get release assets
  • POST <uploads_uri>/repos/{owner}/{repo}/releases/{release_id}/asset: Update a release asset

Changes:

  • Move Release assets to it's own repo-subhandler, it makes senses as even the github documentation is segmented as such
  • Deprecate api::repo::releases::stream_assets in favor of api::repo::release_assets::stream
  • Deprecate api::repo::releases::get_asset in favor of api::repo::release_assets::get
  • Added a new config settings upload_uri to be able to configure when to send to authentication headers for uploads (Due to Don't send Authorization headers to third-party services. #562)
  • Added some test

/!\ The changes from #665 are present in this PR, once the former is merged, I'll rebase this one

@loispostula
Copy link
Contributor Author

@XAMPPRocky I' ve rebased this branch to incorporate #665

@XAMPPRocky
Copy link
Owner

Thank you for your PR!

@XAMPPRocky XAMPPRocky merged commit 66b90cb into XAMPPRocky:main Jul 26, 2024
11 checks passed
@github-actions github-actions bot mentioned this pull request Jul 26, 2024
@github-actions github-actions bot mentioned this pull request Jul 29, 2024
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.

[Feature request] Get release by its id Add upload release asset endpoints
2 participants