Skip to content
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

API: fix set milestone on PR creation #14981

Merged
merged 5 commits into from
Mar 13, 2021
Merged

Conversation

noerw
Copy link
Member

@noerw noerw commented Mar 13, 2021

PR creation via API failed with 404, because we searched
for milestoneID 0, due to uninitialized var usage D: (isn't this what linters are for?)

pr creation via API failed with 404, because we searched
for milestoneID 0, due to uninitialized var usage D:
@noerw noerw added backport/v1.13 modifies/api This PR adds API routes or modifies them type/bug labels Mar 13, 2021
@noerw noerw added this to the 1.14.0 milestone Mar 13, 2021
Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how did we missed that one!

would it be possible to extend one test case to get this covered?

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 13, 2021
@6543
Copy link
Member

6543 commented Mar 13, 2021

if you need help for the fixtures (witch are broken right now) just ask

@noerw
Copy link
Member Author

noerw commented Mar 13, 2021

@6543 HELP! :D

@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 Mar 13, 2021
@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 Mar 13, 2021
@6543 6543 merged commit 658d1bf into go-gitea:master Mar 13, 2021
@6543 6543 deleted the fix-api-pr-milestone branch March 13, 2021 18:06
@6543
Copy link
Member

6543 commented Mar 13, 2021

@noerw please backport

noerw added a commit to noerw/gitea that referenced this pull request Mar 15, 2021
* API: fix set milestone on PR creation

pr creation via API failed with 404, because we searched
for milestoneID 0, due to uninitialized var usage D:

* add tests

Co-authored-by: 6543 <6543@obermui.de>
@noerw noerw added the backport/done All backports for this PR have been created label Mar 15, 2021
techknowlogick pushed a commit that referenced this pull request Mar 15, 2021
* API: fix set milestone on PR creation

pr creation via API failed with 404, because we searched
for milestoneID 0, due to uninitialized var usage D:

* add tests

Co-authored-by: 6543 <6543@obermui.de>

Co-authored-by: 6543 <6543@obermui.de>
@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created 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 type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants