]> source.dussan.org Git - gitea.git/commit
API: fix set milestone on PR creation (#14981)
authorNorwin <noerw@users.noreply.github.com>
Sat, 13 Mar 2021 18:06:52 +0000 (18:06 +0000)
committerGitHub <noreply@github.com>
Sat, 13 Mar 2021 18:06:52 +0000 (19:06 +0100)
commit658d1bfac8c4706d83004c4069cd52ef63fb71cb
treebd92f05b5483e6a7dd12c2f9912c3f71a4ddc178
parente256a62257df85c9fdb53426cc5b28bf422d91af
API: fix set milestone on PR creation (#14981)

* 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

* fix expected status codes

* fix tests

Co-authored-by: 6543 <6543@obermui.de>
integrations/api_pull_test.go
models/fixtures/label.yml
models/fixtures/milestone.yml
models/fixtures/repository.yml
routers/api/v1/repo/pull.go