Fully publishing a draft release fails. #14997

Open
opened 2025-11-02 11:27:39 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @rgammans on GitHub (Oct 2, 2025).

Description

I created a draft release with a work flow, but when I publish it - I get the following page

Image

logs:

2025/10/02 17:46:34 routers/web/repo/release.go:617:EditReleasePost() [E] UpdateRelease: object does not exist [id: , rel_path: ]
2025/10/02 17:46:34 HTTPRequest [I] router: completed POST  /myorg/my-repo/releases/edit/main for 10.94.89.16:0, 500 Internal Server Error in 61.1ms @ repo/release.go:565(repo.EditReleasePost)


Gitea Version

1.24.6

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker container. gitea/gitea:latest-rootless

Database

None

Originally created by @rgammans on GitHub (Oct 2, 2025). ### Description I created a draft release with a work flow, but when I publish it - I get the following page <img width="1145" height="284" alt="Image" src="https://github.com/user-attachments/assets/53d5bf69-dc82-4d61-b1bd-d651f3929f80" /> logs: ```2025/10/02 17:46:32 HTTPRequest [I] router: completed GET /myorg/my-repo/releases/edit/main for 10.94.89.16:0, 200 OK in 82.6ms @ repo/release.go:521(repo.EditRelease) 2025/10/02 17:46:34 routers/web/repo/release.go:617:EditReleasePost() [E] UpdateRelease: object does not exist [id: , rel_path: ] 2025/10/02 17:46:34 HTTPRequest [I] router: completed POST /myorg/my-repo/releases/edit/main for 10.94.89.16:0, 500 Internal Server Error in 61.1ms @ repo/release.go:565(repo.EditReleasePost) ``` ### Gitea Version 1.24.6 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Docker container. gitea/gitea:latest-rootless ### Database None
GiteaMirror added the type/bug label 2025-11-02 11:27:39 -06:00
Author
Owner

@rgammans commented on GitHub (Oct 2, 2025):

Obviously the might be something odd about my release object; but that's hard to know what that might be,

EG, this occurs when visit the release with a browser from the repo and an clicking on 'Publish Release'

@rgammans commented on GitHub (Oct 2, 2025): Obviously the might be something odd about my release object; but that's hard to know what that might be, EG, this occurs when visit the release with a browser from the repo and an clicking on 'Publish Release'
Author
Owner

@wxiaoguang commented on GitHub (Oct 2, 2025):

Maybe the cause is "target" doesn't exist.

340aed3982/services/release/release.go (L104)

@wxiaoguang commented on GitHub (Oct 2, 2025): Maybe the cause is "target" doesn't exist. https://github.com/go-gitea/gitea/blob/340aed39825a8226934fdccbc27fa812b67f6cbd/services/release/release.go#L104
Author
Owner

@rgammans commented on GitHub (Oct 2, 2025):

Well, Ok so ow did the release object get into that state:The action which create it is:

        uses: akkuman/gitea-release-action@v1
        with:
            body: |-
                Some text.
            draft: true
            name: ${{ steps.version-number.outputs.VERSION }}
            files: |-
                dist/*.zip

@rgammans commented on GitHub (Oct 2, 2025): Well, Ok so ow did the release object get into that state:The action which create it is: ``` - name: Create as a release uses: akkuman/gitea-release-action@v1 with: body: |- Some text. draft: true name: ${{ steps.version-number.outputs.VERSION }} files: |- dist/*.zip ```
Author
Owner

@rgammans commented on GitHub (Oct 2, 2025):

Ahh It looking fro a tag 'main'; not a branch 'main'

@rgammans commented on GitHub (Oct 2, 2025): Ahh It looking fro a tag 'main'; not a branch 'main'
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14997