mirror of
https://github.com/go-gitea/gitea
synced 2024-11-14 01:35:54 +01:00
658d1bfac8
* 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>
40 lines
529 B
YAML
40 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
|