forgejo/services/repository
Gusted 618eb8e72a 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)
2024-10-28 06:04:45 +00:00
..
archiver Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
commitstatus
files [TESTS] Fix usage of LoadRepoCommit 2024-08-26 08:03:48 +02:00
adopt.go
adopt_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
avatar.go
avatar_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
branch.go security: add permission check to 'delete branch after merge' 2024-10-28 06:04:45 +00:00
cache.go
check.go
collaboration.go
collaboration_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
commit.go
contributors_graph.go [CHORE] Move cache library 2024-08-27 21:28:56 +02:00
contributors_graph_test.go [CHORE] Move cache library 2024-08-27 21:28:56 +02:00
create.go
create_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
delete.go
fork.go chore(refactor): split repo_service.ForkRepository in two 2024-08-11 12:40:34 +02:00
fork_test.go chore(refactor): split repo_service.ForkRepository in two 2024-08-11 12:40:34 +02:00
generate.go
generate_test.go
hooks.go
init.go
lfs.go log concise repo names in lfs doctor 2024-10-11 14:26:53 +00:00
lfs_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
main_test.go
migrate.go Distinguish LFS object errors to ignore missing objects during migration (#31702) 2024-08-04 18:24:10 +02:00
push.go Fix: database not updated when using git push --tags --force (#5319) 2024-09-22 07:35:25 +00:00
repository.go
repository_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
review.go
review_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
setting.go fix: don't cancel schedule workflows on push to main branch 2024-10-13 12:25:59 +00:00
star.go
template.go
transfer.go
transfer_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00