Add DeleteTag & Correct DeleteReleaseByTag #488
No reviewers
Labels
No Label
has/backport
has/pull
in progress
invalid
kind/breaking
kind/bug
kind/build
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/refactor
kind/security
kind/testing
kind/translation
kind/ui
need/backport
priority/critical
priority/low
priority/maybe
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/go-sdk#488
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "6543/go-sdk:fix-delete-release-and-delete-tag-func"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this is because of https://github.com/go-gitea/gitea/pull/14563 witch fixed unreleased inconsistency
Add DeleteTag + Tests && Correct DeleteReleaseByTag func + Teststo Add DeleteTag & Correct DeleteReleaseByTag@ -136,2 +136,2 @@
// DeleteReleaseTag deletes a tag from a repository, if no release refers to it.
func (c *Client) DeleteReleaseTag(user, repo string, tag string) (*Response, error) {
// DeleteReleaseByTag deletes a release frm a repository by tag
func (c *Client) DeleteReleaseByTag(user, repo string, tag string) (*Response, error) {
This is an API change for downstream users. Is this intentional?
You probably need to have a
func (c *Client) DeleteReleaseTag(...)
function which immediately calls on toc.DeleteReleaseByTag(...)
.(was not released jet so no breaking thing) ;)