mirror of
1
Fork 0
forgejo/routers/api/v1/repo
Gusted 5488ec7d96
security: add permission check to 'delete branch after merge'
- Add a permission check that the doer has write permissions to the head
repository if the the 'delete branch after merge' is enabled when
merging a pull request.
- Unify the checks in the web and API router to `DeleteBranchAfterMerge`.
- Added integration tests.

(cherry picked from commit 266e0b2ce9)

Conflicts:
	tests/integration/pull_merge_test.go
  trivial context conflict
2024-10-28 06:32:10 +01:00
..
action.go
avatar.go
blob.go
branch.go
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
issue_comment.go Load attachments for `/issues/comments/{id}` 2024-07-16 12:44:47 +00:00
issue_comment_attachment.go
issue_dependency.go
issue_label.go
issue_pin.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
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 security: add permission check to 'delete branch after merge' 2024-10-28 06:32:10 +01:00
pull_review.go
release.go
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