feat: implement issue time tracking and stopwatches #5
Reference in New Issue
Block a user
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?
Context
Time tracking allows developers to log time spent on issues directly in Gitea.
Stopwatches provide a live timer that can be started/stopped and then converted to
a time entry. Both are used in project management and billing workflows.
Endpoints to implement
/repos/{owner}/{repo}/issues/{index}/timeslist_issue_times/repos/{owner}/{repo}/issues/{index}/timesadd_issue_time/repos/{owner}/{repo}/issues/{index}/timesreset_issue_time/repos/{owner}/{repo}/issues/{index}/times/{id}delete_issue_time/repos/{owner}/{repo}/issues/{index}/stopwatch/startstart_stopwatch/repos/{owner}/{repo}/issues/{index}/stopwatch/stopstop_stopwatch/repos/{owner}/{repo}/issues/{index}/stopwatch/deletecancel_stopwatch/user/stopwatcheslist_my_stopwatchesAcceptance Criteria
add_issue_time(owner, repo, index, time, user_name, created)—timeis seconds (int)list_issue_timesreturns list withuser,time(seconds),createdfieldsstart_stopwatch/stop_stopwatch/cancel_stopwatchreturn{"success": true}on 204reset_issue_timedeletes ALL time entries for the issuelist_my_stopwatchesreturns active stopwatches across all reposTechnical Notes
POST /timesbody:{"time": 3600, "user_name": "alice", "created": "2024-01-01T10:00:00Z"}timefield is in seconds (not minutes or hours)stop_stopwatchautomatically creates a time entry from elapsed time