The Wayback Machine - https://web.archive.org/web/20220502211131/https://github.com/go-gitea/gitea/pull/14563
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

[API] Add delete release by tag & fix unreleased inconsistency #14563

Conversation

Copy link
Member

@6543 6543 commented Feb 4, 2021

DELETE /repos/{owner}/{repo}/releases/tags/{tag} moved to DELETE /repos/{owner}/{repo}/tags/{tag} && /repos/{owner}/{repo}/releases/tags/{tag} now deletes releases by tag name

followup of #14397 to have a consistent api ...

need to go into v1.14.0 or it will introduce a breaking change otherwise :/ !!

make api added via #13358 only for releases and this one only for tags ...

TODO:

  • Fix & Extend Tests

@6543 6543 added this to the 1.14.0 milestone Feb 4, 2021
lunny
lunny approved these changes Feb 6, 2021
@6543 6543 merged commit 5f248d0 into go-gitea:master Feb 7, 2021
2 checks passed
@6543 6543 deleted the api_followup-of-14397_distinguish-between-release-and-tag branch Feb 7, 2021
a1012112796 added a commit to a1012112796/gitea that referenced this issue Feb 8, 2021
* master:
  Fixed irritating error message related to go version (go-gitea#14611)
  Use OldRef instead of CommitSHA for DeleteBranch comments (go-gitea#14604)
  Add information on how to build statically (go-gitea#14594)
  [skip ci] Updated translations via Crowdin
  Exclude the current dump file from the dump (go-gitea#14606)
  Remove spurious DataAsync Error logging (go-gitea#14599)
  [API] Add  delete release by tag & fix unreleased inconsistency (go-gitea#14563)
  Fix rate limit bug when downloading assets on migrating from github (go-gitea#14564)
  [API] Add affected files of commits to commit struct (go-gitea#14579)
a1012112796 added a commit to a1012112796/gitea that referenced this issue Feb 9, 2021
* master: (22 commits)
  Add support for ref parameter to get raw file API (go-gitea#14602)
  Fixed irritating error message related to go version (go-gitea#14611)
  Use OldRef instead of CommitSHA for DeleteBranch comments (go-gitea#14604)
  Add information on how to build statically (go-gitea#14594)
  [skip ci] Updated translations via Crowdin
  Exclude the current dump file from the dump (go-gitea#14606)
  Remove spurious DataAsync Error logging (go-gitea#14599)
  [API] Add  delete release by tag & fix unreleased inconsistency (go-gitea#14563)
  Fix rate limit bug when downloading assets on migrating from github (go-gitea#14564)
  [API] Add affected files of commits to commit struct (go-gitea#14579)
  [skip ci] Updated licenses and gitignores
  Fix locale init (go-gitea#14582)
  Add Content-Length header to HEAD requests (go-gitea#14542)
  Honor REGISTER_MANUAL_CONFIRM when doing openid registration (go-gitea#14548)
  Fix lfs file viewer (go-gitea#14568)
  Fix typo in generate-emoji.go (go-gitea#14570)
  Fix bug about ListOptions and stars/watchers pagnation (go-gitea#14556)
  Fix gpg key deletion (go-gitea#14561)
  [API] GetRelease by tag only return release (go-gitea#14397)
  Reduce data races (go-gitea#14549)
  ...
daniil-pankratov pushed a commit to daniil-pankratov/gitea that referenced this issue Feb 25, 2021
…tea#14563)

* DeleteReleaseByTag delete release not git tags

* Add api to delete tag (without release)

* fix & extend tests

* fix swagger doc
zhou27 pushed a commit to ssdev-go/gitea-sdk that referenced this issue Mar 5, 2021
* Add DeleteTag + Tests
* Correct DeleteReleaseByTag func + Tests

this is because of go-gitea/gitea#14563 witch fixed unreleased inconsistency

Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/488
Reviewed-by: Andrew Thornton <[email protected]>
Reviewed-by: khmarbaise <[email protected]>
Co-authored-by: 6543 <[email protected]>
Co-committed-by: 6543 <[email protected]>
zhou27 pushed a commit to ssdev-go/gitea-sdk that referenced this issue Mar 5, 2021
based on go-gitea/gitea#14563

Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/491
Reviewed-by: techknowlogick <[email protected]>
Reviewed-by: Andrew Thornton <[email protected]>
Co-authored-by: 6543 <[email protected]>
Co-committed-by: 6543 <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

None yet

4 participants