gitea/routers/api/v1/repo
Junsik Kong 0e629c545a
fix(issue): Replace stopwatch toggle with explicit start/stop actions (#34818)
This PR fixes a state de-synchronization bug with the issue stopwatch,
it resolves the issue by replacing the ambiguous `/toggle` endpoint
with two explicit endpoints: `/start` and `/stop`.

- The "Start timer" button now exclusively calls the `/start` endpoint.
- The "Stop timer" button now exclusively calls the `/stop` endpoint.

This ensures the user's intent is clearly communicated to the server,
eliminating the state inconsistency and fixing the bug.

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-06-25 07:22:58 +07:00
..
action.go Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +07:00
actions_run.go Download actions job logs from API (#33858) 2025-03-26 11:30:52 +07:00
avatar.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
blob.go Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
branch.go Add ff_only parameter to POST /repos/{owner}/{repo}/merge-upstream (#34770) 2025-06-19 12:29:10 +07:00
collaborators.go Fix team permission (#34128) 2025-04-08 04:15:15 +07:00
commits.go feat(api): add date range filtering to commit retrieval endpoints (#34497) 2025-05-19 18:57:58 +07:00
compare.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
download.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
file.go Refactor editor (#34780) 2025-06-21 19:20:51 +07:00
fork.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
git_hook.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
git_ref.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
hook.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
hook_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 +07:00
issue.go Do not mutate incoming options to SearchRepositoryByName (#34553) 2025-06-02 17:33:25 +07:00
issue_attachment.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
issue_comment.go When updating comment, if the content is the same, just return and not update the databse (#34422) 2025-05-11 18:53:23 +07:00
issue_comment_attachment.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
issue_dependency.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
issue_label.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
issue_lock.go Add API routes to lock and unlock issues (#34165) 2025-04-21 00:43:43 +07:00
issue_pin.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
issue_reaction.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
issue_stopwatch.go fix(issue): Replace stopwatch toggle with explicit start/stop actions (#34818) 2025-06-25 07:22:58 +07:00
issue_subscription.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
issue_tracked_time.go Improve "not found" error messages for API (#34267) 2025-04-23 17:42:50 +07:00
key.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
label.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
language.go Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
license.go Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +07:00
migrate.go Remove unused param `doer` (#34545) 2025-06-18 03:12:16 +07:00
milestone.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
mirror.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
notes.go Improve "not found" error messages for API (#34267) 2025-04-23 17:42:50 +07:00
patch.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
pull.go Fix possible pull request broken when leave the page immediately after clicking the update button (#34509) 2025-06-04 17:09:08 +07:00
pull_review.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
release.go Support annotated tags when using create release API (#31840) 2025-06-18 05:12:38 +07:00
release_attachment.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
release_tags.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
repo.go Do not mutate incoming options to SearchRepositoryByName (#34553) 2025-06-02 17:33:25 +07:00
repo_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 +07:00
star.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
status.go Split GetLatestCommitStatus as two functions (#34535) 2025-05-26 19:00:22 +07:00
subscriber.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
tag.go Improve "not found" error messages for API (#34267) 2025-04-23 17:42:50 +07:00
teams.go Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
topic.go Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
transfer.go Fix return bug (#34093) 2025-04-01 17:36:46 +07:00
tree.go Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
wiki.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00