mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 13:55:42 +03:00
ade41f3f04
They were previously not covered at all, either by integration tests or unit tests. This PR also fixes a bug where the `num_comments` field was incorrectly set to include all types of comments. It sets num_closed_issues: 0 as default in milestone unit test fixtures. If they are not set, Incr("num_closed_issues") will be a noop because the field is null.
44 lines
644 B
YAML
44 lines
644 B
YAML
-
|
|
id: 1
|
|
repo_id: 1
|
|
name: milestone1
|
|
content: content1
|
|
is_closed: false
|
|
num_issues: 1
|
|
num_closed_issues: 0
|
|
|
|
-
|
|
id: 2
|
|
repo_id: 1
|
|
name: milestone2
|
|
content: content2
|
|
is_closed: false
|
|
num_issues: 0
|
|
num_closed_issues: 0
|
|
|
|
-
|
|
id: 3
|
|
repo_id: 1
|
|
name: milestone3
|
|
content: content3
|
|
is_closed: true
|
|
num_issues: 1
|
|
num_closed_issues: 0
|
|
|
|
-
|
|
id: 4
|
|
repo_id: 42
|
|
name: milestone of repo42
|
|
content: content random
|
|
is_closed: false
|
|
num_issues: 0
|
|
num_closed_issues: 0
|
|
|
|
-
|
|
id: 5
|
|
repo_id: 10
|
|
name: milestone of repo 10
|
|
content: for testing with PRs
|
|
is_closed: false
|
|
num_issues: 0
|
|
num_closed_issues: 0
|