0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-09 16:10:50 -05:00
forgejo/routers/api/v1/repo
Earl Warren 9f1302f685 fix(api): issue state change is not idempotent
The PATCH if issue & pull request switched to use the service
functions instead. However, the service function changing the state is
not idempotent. Instead of doing nothing which changing from open to
open or close to close, it will fail with an error like:

 Issue [2472] 0 was already closed

Regression of: 6a4bc0289d

Fixes: https://codeberg.org/forgejo/forgejo/issues/4686
(cherry picked from commit e9e3b8c0f3)
2024-07-25 14:21:00 +00:00
..
action.go
avatar.go
blob.go
branch.go Fix branch_protection api shows users/teams who has no readAccess (#30291) (#30544) 2024-04-21 18:10:34 +02:00
collaborators.go
commits.go [BUG] Use correct SHA in GetCommitPullRequest 2024-07-06 21:00:31 +00:00
file.go Add an immutable tarball link to archive download headers for Nix 2024-05-29 18:50:14 +00:00
flags.go
fork.go
git_hook.go
git_ref.go
hook.go
hook_test.go
issue.go fix(api): issue state change is not idempotent 2024-07-25 14:21:00 +00:00
issue_attachment.go Catch and handle unallowed file type errors in issue attachment API (#30791) 2024-05-07 08:12:34 +01:00
issue_comment.go Load attachments for /issues/comments/{id} 2024-07-16 12:44:47 +00:00
issue_comment_attachment.go Catch and handle unallowed file type errors in issue attachment API (#30791) 2024-05-07 08:12:34 +01:00
issue_dependency.go Fix missed doer (#30231) (#30343) 2024-04-15 16:21:45 +02:00
issue_label.go
issue_pin.go Fix missed doer (#30231) (#30343) 2024-04-15 16:21:45 +02:00
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go Fix missed doer (#30231) (#30343) 2024-04-15 16:21:45 +02:00
key.go
label.go
language.go
main_test.go
migrate.go
milestone.go
mirror.go Add missed return after ctx.ServerError (#31130) (partial) 2024-06-02 15:45:31 +00:00
notes.go
patch.go
pull.go fix(api): issue state change is not idempotent 2024-07-25 14:21:00 +00:00
pull_review.go
release.go Fix release published actions not triggering for releases created from existing tags 2024-04-16 18:28:53 +00:00
release_attachment.go
release_tags.go
repo.go Simplify mirror repository API logic (#30963) 2024-05-24 15:15:07 +02:00
repo_test.go
runners.go
star.go
status.go
subscriber.go
tag.go
teams.go
topic.go
transfer.go
tree.go
wiki.go