0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-27 23:44:37 +01:00
gitea/models/fixtures/milestone.yml
Norwin 658d1bfac8
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>
2021-03-13 19:06:52 +01:00

39 lines
529 B
YAML

-
id: 1
repo_id: 1
name: milestone1
content: content1
is_closed: false
num_issues: 1
-
id: 2
repo_id: 1
name: milestone2
content: content2
is_closed: false
num_issues: 0
-
id: 3
repo_id: 1
name: milestone3
content: content3
is_closed: true
num_issues: 1
-
id: 4
repo_id: 42
name: milestone of repo42
content: content random
is_closed: false
num_issues: 0
-
id: 5
repo_id: 10
name: milestone of repo 10
content: for testing with PRs
is_closed: false
num_issues: 0