Skip to content

Conversation

@wxiaoguang
Copy link
Contributor

Fix #19008, use GitHub's behavior (empty SHA to create a new file)

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 24, 2025
@github-actions github-actions bot added modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code labels Oct 24, 2025
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Oct 24, 2025
@lunny lunny added this to the 1.26.0 milestone Oct 24, 2025
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 24, 2025
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Oct 24, 2025
@wxiaoguang wxiaoguang merged commit 9a73a1f into go-gitea:main Oct 24, 2025
26 checks passed
@wxiaoguang wxiaoguang deleted the fix-api-update-file branch October 24, 2025 04:46
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Oct 24, 2025
zjjhot added a commit to zjjhot/gitea that referenced this pull request Oct 30, 2025
* giteaofficial/main:
  [skip ci] Updated translations via Crowdin
  Revert go-gitea#18491, fix oauth2 client link account (go-gitea#35745)
  Upgrade go mail to 0.7.2 (go-gitea#35748)
  [skip ci] Updated translations via Crowdin
  Support actions and reusable workflows from private repos (go-gitea#32562)
  Use git model to detect whether branch exist instead of gitrepo method (go-gitea#35459)
  Fix shutdown waitgroup panic (go-gitea#35676)
  Intorduce "config edit-ini" sub command to help maintaining INI config file (go-gitea#35735)
  Improve online runner check (go-gitea#35722)
  Make "update file" API can create a new file when SHA is not set (go-gitea#35738)
  Fix review request webhook bug (go-gitea#35339) (go-gitea#35723)
  Misc tool tweaks (go-gitea#35734)
  Update dependencies (go-gitea#35733)
  Make external iframe render work (go-gitea#35730)
  Remove mermaid margin workaround (go-gitea#35732)

# Conflicts:
#	models/user/user.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge the create a file in a repository API and the update a file in a repository API

4 participants