gitea/tests
Rob Gonnella c9e7fde8b3
feat: adds option to force update new branch in contents routes (#35592)
Allows users to specify a "force" option in API /contents routes when
modifying files in a new branch. When "force" is true, and the branch
already exists, a force push will occur provided the branch does not
have a branch protection rule that disables force pushing.

This is useful as a way to manage a branch remotely through only the
API. For example in an automated release tool you can pull commits,
analyze, and update a release PR branch all remotely without needing to
clone or perform any local git operations.

Resolve #35538

---------

Co-authored-by: Rob Gonnella <rob.gonnella@papayapay.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-06 21:23:14 -07:00
..
e2e enforce explanation for necessary nolints and fix bugs (#34883) 2025-06-27 21:48:03 +08:00
fuzz Fix fuzz test (#33156) 2025-01-09 15:15:47 +08:00
gitea-lfs-meta
gitea-repositories-meta Support choose email when creating a commit via web UI (more) (#33445) 2025-01-31 02:36:18 +00:00
integration feat: adds option to force update new branch in contents routes (#35592) 2025-10-06 21:23:14 -07:00
testdata/data
mssql.ini.tmpl Fix LFS URL (#33840) 2025-03-10 17:36:02 +08:00
mysql.ini.tmpl Fix LFS URL (#33840) 2025-03-10 17:36:02 +08:00
pgsql.ini.tmpl Fix LFS URL (#33840) 2025-03-10 17:36:02 +08:00
sqlite.ini.tmpl Fix LFS URL (#33840) 2025-03-10 17:36:02 +08:00
test_utils.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00