Files
gitea/routers/api/v1/repo
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
..
2025-08-04 23:41:30 -04:00
2025-02-17 12:41:03 -08:00
2025-02-17 12:41:03 -08:00
2025-02-17 12:41:03 -08:00
2025-02-17 12:41:03 -08:00
2025-02-17 12:41:03 -08:00
2025-03-31 01:53:48 -04:00
2025-02-17 12:41:03 -08:00
2025-02-17 12:41:03 -08:00
2025-02-17 12:41:03 -08:00
2025-02-16 22:13:17 -08:00
2025-02-16 22:13:17 -08:00
2025-06-18 03:12:16 +00:00
2025-02-17 12:41:03 -08:00
2025-04-01 10:14:01 +00:00
2025-06-25 11:25:20 -07:00
2025-02-17 12:41:03 -08:00
2025-03-31 01:53:48 -04:00
2025-02-17 12:41:03 -08:00
2025-02-17 12:41:03 -08:00
2025-02-16 22:13:17 -08:00
2025-02-16 22:13:17 -08:00
2025-04-01 17:36:46 -04:00
2025-02-16 22:13:17 -08:00