mirror of https://github.com/go-gitea/gitea
fix conflict
This commit is contained in:
parent
01088a9f41
commit
66f96761e8
|
@ -1,7 +1,7 @@
|
|||
-
|
||||
id: 1
|
||||
user_id: 1
|
||||
repo_id: 61
|
||||
repo_id: 63
|
||||
mode: 4
|
||||
|
||||
-
|
||||
|
@ -49,7 +49,7 @@
|
|||
-
|
||||
id: 9
|
||||
user_id: 12
|
||||
repo_id: 60
|
||||
repo_id: 62
|
||||
mode: 4
|
||||
|
||||
-
|
||||
|
|
|
@ -341,6 +341,40 @@
|
|||
|
||||
-
|
||||
id: 21
|
||||
repo_id: 60
|
||||
index: 1
|
||||
poster_id: 39
|
||||
original_author_id: 0
|
||||
name: repo60 pull1
|
||||
content: content for the 1st issue
|
||||
milestone_id: 0
|
||||
priority: 0
|
||||
is_closed: false
|
||||
is_pull: true
|
||||
num_comments: 0
|
||||
created_unix: 1707270422
|
||||
updated_unix: 1707270422
|
||||
is_locked: false
|
||||
|
||||
-
|
||||
id: 22
|
||||
repo_id: 61
|
||||
index: 1
|
||||
poster_id: 40
|
||||
original_author_id: 0
|
||||
name: repo61 pull1
|
||||
content: content for the 1st issue
|
||||
milestone_id: 0
|
||||
priority: 0
|
||||
is_closed: false
|
||||
is_pull: true
|
||||
num_comments: 0
|
||||
created_unix: 1707270422
|
||||
updated_unix: 1707270422
|
||||
is_locked: false
|
||||
|
||||
-
|
||||
id: 23
|
||||
repo_id: 10
|
||||
index: 2
|
||||
poster_id: 12
|
||||
|
@ -357,7 +391,7 @@
|
|||
is_locked: false
|
||||
|
||||
-
|
||||
id: 22
|
||||
id: 24
|
||||
repo_id: 10
|
||||
index: 3
|
||||
poster_id: 12
|
||||
|
@ -374,7 +408,7 @@
|
|||
is_locked: false
|
||||
|
||||
-
|
||||
id: 23
|
||||
id: 25
|
||||
repo_id: 10
|
||||
index: 4
|
||||
poster_id: 12
|
||||
|
@ -391,7 +425,7 @@
|
|||
is_locked: false
|
||||
|
||||
-
|
||||
id: 24
|
||||
id: 26
|
||||
repo_id: 10
|
||||
index: 5
|
||||
poster_id: 12
|
||||
|
@ -408,7 +442,7 @@
|
|||
is_locked: false
|
||||
|
||||
-
|
||||
id: 25
|
||||
id: 27
|
||||
repo_id: 10
|
||||
index: 6
|
||||
poster_id: 12
|
||||
|
@ -425,7 +459,7 @@
|
|||
is_locked: false
|
||||
|
||||
-
|
||||
id: 26
|
||||
id: 28
|
||||
repo_id: 11
|
||||
index: 1
|
||||
poster_id: 13
|
||||
|
|
|
@ -102,12 +102,30 @@
|
|||
|
||||
-
|
||||
id: 18
|
||||
uid: 38
|
||||
org_id: 41
|
||||
is_public: true
|
||||
|
||||
-
|
||||
id: 19
|
||||
uid: 39
|
||||
org_id: 41
|
||||
is_public: true
|
||||
|
||||
-
|
||||
id: 20
|
||||
uid: 40
|
||||
org_id: 41
|
||||
is_public: true
|
||||
|
||||
-
|
||||
id: 21
|
||||
uid: 12
|
||||
org_id: 25
|
||||
is_public: true
|
||||
|
||||
-
|
||||
id: 19
|
||||
id: 22
|
||||
uid: 2
|
||||
org_id: 35
|
||||
is_public: true
|
||||
|
|
|
@ -104,6 +104,24 @@
|
|||
type: 0 # gitea pull request
|
||||
status: 2 # mergable
|
||||
issue_id: 21
|
||||
index: 1
|
||||
head_repo_id: 60
|
||||
base_repo_id: 60
|
||||
|
||||
-
|
||||
id: 10
|
||||
type: 0 # gitea pull request
|
||||
status: 2 # mergable
|
||||
issue_id: 22
|
||||
index: 1
|
||||
head_repo_id: 61
|
||||
base_repo_id: 61
|
||||
|
||||
-
|
||||
id: 11
|
||||
type: 0 # gitea pull request
|
||||
status: 2 # mergable
|
||||
issue_id: 23
|
||||
index: 2
|
||||
head_repo_id: 10
|
||||
base_repo_id: 10
|
||||
|
@ -113,10 +131,10 @@
|
|||
has_merged: false
|
||||
|
||||
-
|
||||
id: 10
|
||||
id: 12
|
||||
type: 0 # gitea pull request
|
||||
status: 2 # mergable
|
||||
issue_id: 22
|
||||
issue_id: 24
|
||||
index: 3
|
||||
head_repo_id: 10
|
||||
base_repo_id: 10
|
||||
|
@ -126,10 +144,10 @@
|
|||
has_merged: false
|
||||
|
||||
-
|
||||
id: 11
|
||||
id: 13
|
||||
type: 0 # gitea pull request
|
||||
status: 3 # manually merged
|
||||
issue_id: 23
|
||||
issue_id: 25
|
||||
index: 4
|
||||
head_repo_id: 10
|
||||
base_repo_id: 10
|
||||
|
@ -139,10 +157,10 @@
|
|||
has_merged: true
|
||||
|
||||
-
|
||||
id: 12
|
||||
id: 14
|
||||
type: 0 # gitea pull request
|
||||
status: 2 # mergable
|
||||
issue_id: 24
|
||||
issue_id: 26
|
||||
index: 5
|
||||
head_repo_id: 10
|
||||
base_repo_id: 10
|
||||
|
@ -152,10 +170,10 @@
|
|||
has_merged: false
|
||||
|
||||
-
|
||||
id: 13
|
||||
id: 15
|
||||
type: 0 # gitea pull request
|
||||
status: 3 # manually merged
|
||||
issue_id: 25
|
||||
issue_id: 27
|
||||
index: 6
|
||||
head_repo_id: 10
|
||||
base_repo_id: 10
|
||||
|
@ -165,10 +183,10 @@
|
|||
has_merged: true
|
||||
|
||||
-
|
||||
id: 14
|
||||
id: 16
|
||||
type: 0 # gitea pull request
|
||||
status: 2 # mergable
|
||||
issue_id: 26
|
||||
issue_id: 28
|
||||
index: 1
|
||||
head_repo_id: 11
|
||||
base_repo_id: 10
|
||||
|
|
|
@ -681,10 +681,52 @@
|
|||
id: 102
|
||||
repo_id: 60
|
||||
type: 1
|
||||
config: "{}"
|
||||
created_unix: 946684810
|
||||
|
||||
-
|
||||
id: 103
|
||||
repo_id: 60
|
||||
type: 2
|
||||
config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}"
|
||||
created_unix: 946684810
|
||||
|
||||
-
|
||||
id: 104
|
||||
repo_id: 60
|
||||
type: 3
|
||||
config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}"
|
||||
created_unix: 946684810
|
||||
|
||||
-
|
||||
id: 105
|
||||
repo_id: 61
|
||||
type: 1
|
||||
config: "{}"
|
||||
created_unix: 946684810
|
||||
|
||||
-
|
||||
id: 106
|
||||
repo_id: 61
|
||||
type: 2
|
||||
config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}"
|
||||
created_unix: 946684810
|
||||
|
||||
-
|
||||
id: 107
|
||||
repo_id: 61
|
||||
type: 3
|
||||
config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}"
|
||||
created_unix: 946684810
|
||||
|
||||
-
|
||||
id: 108
|
||||
repo_id: 62
|
||||
type: 1
|
||||
created_unix: 946684810
|
||||
|
||||
-
|
||||
id: 109
|
||||
repo_id: 63
|
||||
type: 1
|
||||
created_unix: 946684810
|
||||
|
|
|
@ -1709,6 +1709,68 @@
|
|||
|
||||
-
|
||||
id: 60
|
||||
owner_id: 40
|
||||
owner_name: user40
|
||||
lower_name: repo60
|
||||
name: repo60
|
||||
default_branch: main
|
||||
num_watches: 0
|
||||
num_stars: 0
|
||||
num_forks: 0
|
||||
num_issues: 0
|
||||
num_closed_issues: 0
|
||||
num_pulls: 1
|
||||
num_closed_pulls: 0
|
||||
num_milestones: 0
|
||||
num_closed_milestones: 0
|
||||
num_projects: 0
|
||||
num_closed_projects: 0
|
||||
is_private: false
|
||||
is_empty: false
|
||||
is_archived: false
|
||||
is_mirror: false
|
||||
status: 0
|
||||
is_fork: false
|
||||
fork_id: 0
|
||||
is_template: false
|
||||
template_id: 0
|
||||
size: 0
|
||||
is_fsck_enabled: true
|
||||
close_issues_via_commit_in_any_branch: false
|
||||
|
||||
-
|
||||
id: 61
|
||||
owner_id: 41
|
||||
owner_name: org41
|
||||
lower_name: repo61
|
||||
name: repo61
|
||||
default_branch: main
|
||||
num_watches: 0
|
||||
num_stars: 0
|
||||
num_forks: 0
|
||||
num_issues: 0
|
||||
num_closed_issues: 0
|
||||
num_pulls: 1
|
||||
num_closed_pulls: 0
|
||||
num_milestones: 0
|
||||
num_closed_milestones: 0
|
||||
num_projects: 0
|
||||
num_closed_projects: 0
|
||||
is_private: false
|
||||
is_empty: false
|
||||
is_archived: false
|
||||
is_mirror: false
|
||||
status: 0
|
||||
is_fork: false
|
||||
fork_id: 0
|
||||
is_template: false
|
||||
template_id: 0
|
||||
size: 0
|
||||
is_fsck_enabled: true
|
||||
close_issues_via_commit_in_any_branch: false
|
||||
|
||||
-
|
||||
id: 62
|
||||
owner_id: 25
|
||||
owner_name: org25
|
||||
lower_name: org_fork_repo59
|
||||
|
@ -1738,7 +1800,7 @@
|
|||
close_issues_via_commit_in_any_branch: false
|
||||
|
||||
-
|
||||
id: 61
|
||||
id: 63
|
||||
owner_id: 35
|
||||
owner_name: private_org35
|
||||
lower_name: private_org_fork_repo60
|
||||
|
|
|
@ -220,6 +220,28 @@
|
|||
|
||||
-
|
||||
id: 21
|
||||
org_id: 41
|
||||
lower_name: owners
|
||||
name: Owners
|
||||
authorize: 4 # owner
|
||||
num_repos: 1
|
||||
num_members: 1
|
||||
includes_all_repositories: true
|
||||
can_create_org_repo: true
|
||||
|
||||
-
|
||||
id: 22
|
||||
org_id: 41
|
||||
lower_name: team1
|
||||
name: Team1
|
||||
authorize: 1 # read
|
||||
num_repos: 1
|
||||
num_members: 2
|
||||
includes_all_repositories: false
|
||||
can_create_org_repo: false
|
||||
|
||||
-
|
||||
id: 23
|
||||
org_id: 25
|
||||
lower_name: owners
|
||||
name: Owners
|
||||
|
@ -230,10 +252,10 @@
|
|||
can_create_org_repo: true
|
||||
|
||||
-
|
||||
id: 22
|
||||
id: 24
|
||||
org_id: 35
|
||||
lower_name: team22noreadcode
|
||||
name: team22noreadcode
|
||||
lower_name: team24noreadcode
|
||||
name: team24noreadcode
|
||||
authorize: 0 # no access
|
||||
num_repos: 1
|
||||
num_members: 1
|
||||
|
|
|
@ -66,12 +66,24 @@
|
|||
|
||||
-
|
||||
id: 12
|
||||
org_id: 35
|
||||
team_id: 18
|
||||
org_id: 41
|
||||
team_id: 21
|
||||
repo_id: 61
|
||||
|
||||
-
|
||||
id: 13
|
||||
org_id: 35
|
||||
org_id: 41
|
||||
team_id: 22
|
||||
repo_id: 61
|
||||
|
||||
-
|
||||
id: 14
|
||||
org_id: 35
|
||||
team_id: 18
|
||||
repo_id: 63
|
||||
|
||||
-
|
||||
id: 15
|
||||
org_id: 35
|
||||
team_id: 24
|
||||
repo_id: 63
|
||||
|
|
|
@ -289,18 +289,54 @@
|
|||
|
||||
-
|
||||
id: 49
|
||||
team_id: 18
|
||||
type: 1 # code
|
||||
team_id: 21
|
||||
type: 1
|
||||
access_mode: 4
|
||||
|
||||
-
|
||||
id: 50
|
||||
team_id: 21
|
||||
type: 1 # code
|
||||
type: 2
|
||||
access_mode: 4
|
||||
|
||||
-
|
||||
id: 51
|
||||
team_id: 21
|
||||
type: 3
|
||||
access_mode: 4
|
||||
|
||||
-
|
||||
id: 52
|
||||
team_id: 22
|
||||
type: 1
|
||||
access_mode: 1
|
||||
|
||||
-
|
||||
id: 53
|
||||
team_id: 22
|
||||
type: 2
|
||||
access_mode: 1
|
||||
|
||||
-
|
||||
id: 54
|
||||
team_id: 22
|
||||
type: 3
|
||||
access_mode: 1
|
||||
|
||||
-
|
||||
id: 55
|
||||
team_id: 18
|
||||
type: 1 # code
|
||||
access_mode: 4
|
||||
|
||||
-
|
||||
id: 56
|
||||
team_id: 23
|
||||
type: 1 # code
|
||||
access_mode: 4
|
||||
|
||||
-
|
||||
id: 57
|
||||
team_id: 24
|
||||
type: 1 # code
|
||||
access_mode: 0
|
||||
|
|
|
@ -132,12 +132,30 @@
|
|||
|
||||
-
|
||||
id: 23
|
||||
org_id: 25
|
||||
org_id: 41
|
||||
team_id: 21
|
||||
uid: 12
|
||||
uid: 40
|
||||
|
||||
-
|
||||
id: 24
|
||||
org_id: 35
|
||||
org_id: 41
|
||||
team_id: 22
|
||||
uid: 38
|
||||
|
||||
-
|
||||
id: 25
|
||||
org_id: 41
|
||||
team_id: 22
|
||||
uid: 39
|
||||
|
||||
-
|
||||
id: 26
|
||||
org_id: 25
|
||||
team_id: 23
|
||||
uid: 12
|
||||
|
||||
-
|
||||
id: 27
|
||||
org_id: 35
|
||||
team_id: 24
|
||||
uid: 2
|
||||
|
|
|
@ -217,7 +217,7 @@ func TestAPISearchIssues(t *testing.T) {
|
|||
defer tests.PrepareTestEnv(t)()
|
||||
|
||||
// as this API was used in the frontend, it uses UI page size
|
||||
expectedIssueCount := 22 // from the fixtures
|
||||
expectedIssueCount := 24 // from the fixtures
|
||||
if expectedIssueCount > setting.UI.IssuePagingNum {
|
||||
expectedIssueCount = setting.UI.IssuePagingNum
|
||||
}
|
||||
|
@ -257,7 +257,7 @@ func TestAPISearchIssues(t *testing.T) {
|
|||
req = NewRequest(t, "GET", link.String()).AddTokenAuth(token)
|
||||
resp = MakeRequest(t, req, http.StatusOK)
|
||||
DecodeJSON(t, resp, &apiIssues)
|
||||
assert.EqualValues(t, "26", resp.Header().Get("X-Total-Count"))
|
||||
assert.EqualValues(t, "28", resp.Header().Get("X-Total-Count"))
|
||||
assert.Len(t, apiIssues, 20)
|
||||
|
||||
query.Add("limit", "10")
|
||||
|
@ -265,7 +265,7 @@ func TestAPISearchIssues(t *testing.T) {
|
|||
req = NewRequest(t, "GET", link.String()).AddTokenAuth(token)
|
||||
resp = MakeRequest(t, req, http.StatusOK)
|
||||
DecodeJSON(t, resp, &apiIssues)
|
||||
assert.EqualValues(t, "26", resp.Header().Get("X-Total-Count"))
|
||||
assert.EqualValues(t, "28", resp.Header().Get("X-Total-Count"))
|
||||
assert.Len(t, apiIssues, 10)
|
||||
|
||||
query = url.Values{"assigned": {"true"}, "state": {"all"}}
|
||||
|
@ -315,7 +315,7 @@ func TestAPISearchIssuesWithLabels(t *testing.T) {
|
|||
defer tests.PrepareTestEnv(t)()
|
||||
|
||||
// as this API was used in the frontend, it uses UI page size
|
||||
expectedIssueCount := 22 // from the fixtures
|
||||
expectedIssueCount := 24 // from the fixtures
|
||||
if expectedIssueCount > setting.UI.IssuePagingNum {
|
||||
expectedIssueCount = setting.UI.IssuePagingNum
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ func TestNodeinfo(t *testing.T) {
|
|||
assert.True(t, nodeinfo.OpenRegistrations)
|
||||
assert.Equal(t, "gitea", nodeinfo.Software.Name)
|
||||
assert.Equal(t, 26, nodeinfo.Usage.Users.Total)
|
||||
assert.Equal(t, 26, nodeinfo.Usage.LocalPosts)
|
||||
assert.Equal(t, 28, nodeinfo.Usage.LocalPosts)
|
||||
assert.Equal(t, 3, nodeinfo.Usage.LocalComments)
|
||||
})
|
||||
}
|
||||
|
|
|
@ -93,9 +93,9 @@ func TestAPISearchRepo(t *testing.T) {
|
|||
}{
|
||||
{
|
||||
name: "RepositoriesMax50", requestURL: "/api/v1/repos/search?limit=50&private=false", expectedResults: expectedResults{
|
||||
nil: {count: 34},
|
||||
user: {count: 34},
|
||||
user2: {count: 34},
|
||||
nil: {count: 36},
|
||||
user: {count: 36},
|
||||
user2: {count: 36},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
@ -407,7 +407,7 @@ func TestSearchIssues(t *testing.T) {
|
|||
|
||||
session := loginUser(t, "user2")
|
||||
|
||||
expectedIssueCount := 22 // from the fixtures
|
||||
expectedIssueCount := 24 // from the fixtures
|
||||
if expectedIssueCount > setting.UI.IssuePagingNum {
|
||||
expectedIssueCount = setting.UI.IssuePagingNum
|
||||
}
|
||||
|
@ -444,7 +444,7 @@ func TestSearchIssues(t *testing.T) {
|
|||
req = NewRequest(t, "GET", link.String())
|
||||
resp = session.MakeRequest(t, req, http.StatusOK)
|
||||
DecodeJSON(t, resp, &apiIssues)
|
||||
assert.EqualValues(t, "26", resp.Header().Get("X-Total-Count"))
|
||||
assert.EqualValues(t, "28", resp.Header().Get("X-Total-Count"))
|
||||
assert.Len(t, apiIssues, 20)
|
||||
|
||||
query.Add("limit", "5")
|
||||
|
@ -452,7 +452,7 @@ func TestSearchIssues(t *testing.T) {
|
|||
req = NewRequest(t, "GET", link.String())
|
||||
resp = session.MakeRequest(t, req, http.StatusOK)
|
||||
DecodeJSON(t, resp, &apiIssues)
|
||||
assert.EqualValues(t, "26", resp.Header().Get("X-Total-Count"))
|
||||
assert.EqualValues(t, "28", resp.Header().Get("X-Total-Count"))
|
||||
assert.Len(t, apiIssues, 5)
|
||||
|
||||
query = url.Values{"assigned": {"true"}, "state": {"all"}}
|
||||
|
@ -501,7 +501,7 @@ func TestSearchIssues(t *testing.T) {
|
|||
func TestSearchIssuesWithLabels(t *testing.T) {
|
||||
defer tests.PrepareTestEnv(t)()
|
||||
|
||||
expectedIssueCount := 22 // from the fixtures
|
||||
expectedIssueCount := 24 // from the fixtures
|
||||
if expectedIssueCount > setting.UI.IssuePagingNum {
|
||||
expectedIssueCount = setting.UI.IssuePagingNum
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue