GetRepoRef() + GetRepoRefs() need changes #497
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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/go-sdk#497
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Looking at the API capabilities, and what the SDK makes of it, it looks like these functions should behave differently:
GetRepoRef()
doesnt differ fromGetRepoRefs()
other than trying to cast the response to a singleReference
.This is doomed to fail, as the API always seems to return an array, so this function currently is unusable anyway.
I'd argue, that
GetRepoRefs()
shouldn't take aref
param, and list all refs of the repo, for which there currently is no function at all.