-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POST /api/v1/releases should require target parameter #5471
Comments
@noerw thanks for your PR to the go-sdk repo, are you able to make another one to this repo to update the dep? 😄 |
I quickly searched for the API code but did not find it, so I guess, no? |
iirc it's just |
@techknowlogick I dont have a |
@noerw np. I can do that, and I will also write up the steps that I do so that you can know what they are if you want to in the future. Dep is a golang dependancy tool, and it allows us to manage dependencies (such as go-sdk which we import from the other repo). You'll see gopkg.toml (and a lock file) which lists all the deps we have, and the vendor directory which is a copy of all the dependancies that we use. |
@noerw if you are interested in the steps I took I documented them in the PR linked to this issue. If you want to install dep first, you can run |
Gitea version (or commit ref): 1.6.0
Can you reproduce the bug at https://try.gitea.io:
Description
When trying to create a release without
target_comitish
parameter the following error occurs:It would be good to reject this request, instead of querying git with an empty commitish string.
The text was updated successfully, but these errors were encountered: