[Add] TrackedTimes delete functions #210
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
4 Participants
Notifications
Due Date
No due date set.
Blocks
#87 tea times: reset issue
gitea/tea
#88 tea times: delete times
gitea/tea
Reference: gitea/go-sdk#210
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "6543/go-sdk:add-tracked-times-functions"
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?
close #209
Thanks! Please also add a route to list all user times across repos (
/user/times
), so we can add that astea times user
or something similar@noerw this is only provided via sudo-API wich the user has to be admin at the moment
@ -70,1 +73,3 @@
return times, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/issues/%d/times", owner, repo, index), nil, nil, ×)
// ResetIssueTime reset tracked time of a single issue for a given repository
func (c *Client) ResetIssueTime(owner, repo string, index int64) error {
_, err := c.getResponse("GET", fmt.Sprintf("/repos/%s/%s/issues/%d/times", owner, repo, index), nil, nil)
I think this should be "DELETE" not "GET"
@ -71,0 +78,4 @@
// DeleteTime delete a specific tracked time by id of a single issue for a given repository
func (c *Client) DeleteTime(owner, repo string, index, timeID int64) error {
_, err := c.getResponse("GET", fmt.Sprintf("/repos/%s/%s/issues/%d/times/%d", owner, repo, index, timeID), nil, nil)
Similarly "DELETE" not "GET"
@zeripath done