mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-07-12 12:37:57 +00:00
Adds an option "force_overwrite_new_branch" when posting to
/repos/{owner}/{repo}/contents to modify multiple files in a repository.
When user provides both "branch" and "new_branch" options, and
"new_branch" already exists, the "force_overwrite_new_branch" option
allows the user to overwrite the existing branch. Under the hood this
amounts to a "git push --force".
[Issue #12600](https://codeberg.org/forgejo/forgejo/issues/12600)
### Tests for Go changes
- I added test coverage for Go changes...
- [ ] in their respective `*_test.go` for unit tests.
- [x] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I ran...
- [x] `make pr-go` before pushing
### Documentation
- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [ ] I did not document these changes and I do not expect someone else to do it.
- [x] API swagger docs updated
### Release notes
- [x] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change.
- [ ] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change.
Co-authored-by: Rob Gonnella <rob.gonnella@papayapay.com>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12663
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
140 lines
2.3 KiB
Text
140 lines
2.3 KiB
Text
# Emacs
|
|
*~
|
|
|
|
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
|
*.o
|
|
*.a
|
|
*.so
|
|
|
|
# Folders
|
|
_obj
|
|
_test
|
|
|
|
# IntelliJ
|
|
.idea
|
|
# Goland's output filename can not be set manually
|
|
/go_build_*
|
|
/gitea_*
|
|
|
|
# MS VSCode
|
|
.vscode
|
|
__debug_bin*
|
|
|
|
*.cgo1.go
|
|
*.cgo2.c
|
|
_cgo_defun.c
|
|
_cgo_gotypes.go
|
|
_cgo_export.*
|
|
|
|
_testmain.go
|
|
|
|
# folder for project related local files
|
|
/local/
|
|
|
|
*.exe
|
|
*.test
|
|
*.prof
|
|
|
|
*coverage.out
|
|
coverage.all
|
|
coverage.html
|
|
coverage.html.gz
|
|
coverage/
|
|
cpu.out
|
|
|
|
/modules/migration/bindata.go
|
|
/modules/migration/bindata.go.hash
|
|
/modules/options/bindata.go
|
|
/modules/options/bindata.go.hash
|
|
/modules/public/bindata.go
|
|
/modules/public/bindata.go.hash
|
|
/modules/templates/bindata.go
|
|
/modules/templates/bindata.go.hash
|
|
|
|
*.db
|
|
*.log
|
|
*.log.*.gz
|
|
|
|
/build/lint-locale/lint-locale
|
|
/build/lint-locale-usage/lint-locale-usage
|
|
/gitea
|
|
/gitea-vet
|
|
/debug
|
|
/integrations.test
|
|
/forgejo
|
|
|
|
/bin
|
|
/dist
|
|
/custom/*
|
|
!/custom/conf/app.example.ini
|
|
/data
|
|
/indexers
|
|
/log
|
|
/public/assets/img/avatar
|
|
/tests/integration/gitea-integration-*
|
|
/tests/integration/indexers-*
|
|
/tests/e2e/gitea-e2e-*
|
|
/tests/e2e/indexers-*
|
|
/tests/e2e/reports
|
|
/tests/e2e/test-artifacts
|
|
/tests/e2e/test-snapshots
|
|
/tests/e2e/.auth
|
|
/tests/*.ini
|
|
/tests/**/*.git/**/*.sample
|
|
/node_modules
|
|
/.venv
|
|
/yarn.lock
|
|
/yarn-error.log
|
|
/npm-debug.log*
|
|
/public/assets/js
|
|
/public/assets/css
|
|
/public/assets/fonts
|
|
/public/assets/licenses.txt
|
|
/vendor
|
|
/web_src/fomantic/node_modules
|
|
/web_src/fomantic/build/*
|
|
!/web_src/fomantic/build/semantic.js
|
|
!/web_src/fomantic/build/semantic.css
|
|
!/web_src/fomantic/build/themes
|
|
/web_src/fomantic/build/themes/*
|
|
!/web_src/fomantic/build/themes/default
|
|
/web_src/fomantic/build/themes/default/assets/*
|
|
!/web_src/fomantic/build/themes/default/assets/fonts
|
|
/web_src/fomantic/build/themes/default/assets/fonts/*
|
|
!/web_src/fomantic/build/themes/default/assets/fonts/icons.woff2
|
|
!/web_src/fomantic/build/themes/default/assets/fonts/outline-icons.woff2
|
|
/VERSION
|
|
/.air
|
|
/.go-licenses
|
|
/.cur-deadcode-out
|
|
/.deadcode.diff
|
|
|
|
# Files and folders that were previously generated
|
|
/public/assets/img/webpack
|
|
|
|
# Snapcraft
|
|
/gitea_a*.txt
|
|
snap/.snapcraft/
|
|
parts/
|
|
stage/
|
|
prime/
|
|
*.snap
|
|
*.snap-build
|
|
*_source.tar.bz2
|
|
.DS_Store
|
|
|
|
# Direnv configuration
|
|
/.envrc
|
|
|
|
# nix-direnv generated files
|
|
.direnv/
|
|
|
|
# Make evidence files
|
|
/.make_evidence
|
|
|
|
# Manpage
|
|
/man
|
|
tests/integration/api_activitypub_person_inbox_useractivity_test.go
|
|
|
|
# Mise version management
|
|
mise.toml
|