forked from mirror/gitea
3186ef554c
* Support searching commits with prefix syntax For now, support auther: committer: When more than one prefix is supplied is presented, the result is the union. When different prefixes are supplied, the result is the intersection. For example, "author:alice author:bob" => the result is all commits authored by Alice OR Bob "hello committer:alice" => the result is all commits committed by Alice AND has the keyword 'hello' in the message. Note that there should NOT have any space after the colon(:) of the prefix. For example, "author:bill" => correct "author: bill" => wrong * Remove unneeded logging * Add missing files of test repository * Add missing repo_unit entries to test fixtures * Update test cases * Add tooltip for commits search button * Update tooltip text I have no idea about how to format it with line breaks. * Make the usage example more real * Add a test case * Add new options struct for SearchCommits * Prefer len(s) > 0 over s != "" * Add NewSearchCommitsOptions
259 lines
3.7 KiB
YAML
259 lines
3.7 KiB
YAML
-
|
|
id: 1
|
|
repo_id: 1
|
|
type: 4
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 2
|
|
repo_id: 1
|
|
type: 5
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 3
|
|
repo_id: 1
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 4
|
|
repo_id: 1
|
|
type: 2
|
|
config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 5
|
|
repo_id: 1
|
|
type: 3
|
|
config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 6
|
|
repo_id: 3
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 7
|
|
repo_id: 3
|
|
type: 2
|
|
config: "{\"EnableTimetracker\":false,\"AllowOnlyContributorsToTrackTime\":false}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 8
|
|
repo_id: 3
|
|
type: 3
|
|
config: "{\"IgnoreWhitespaceConflicts\":true,\"AllowMerge\":true,\"AllowRebase\":false,\"AllowRebaseMerge\":true,\"AllowSquash\":false}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 9
|
|
repo_id: 3
|
|
type: 4
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 10
|
|
repo_id: 3
|
|
type: 5
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 11
|
|
repo_id: 31
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 12
|
|
repo_id: 33
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 1535593231
|
|
|
|
-
|
|
id: 13
|
|
repo_id: 33
|
|
type: 2
|
|
config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}"
|
|
created_unix: 1535593231
|
|
|
|
-
|
|
id: 14
|
|
repo_id: 33
|
|
type: 3
|
|
config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowSquash\":true}"
|
|
created_unix: 1535593231
|
|
|
|
-
|
|
id: 15
|
|
repo_id: 33
|
|
type: 4
|
|
config: "{}"
|
|
created_unix: 1535593231
|
|
|
|
-
|
|
id: 16
|
|
repo_id: 33
|
|
type: 5
|
|
config: "{}"
|
|
created_unix: 1535593231
|
|
|
|
-
|
|
id: 17
|
|
repo_id: 4
|
|
type: 4
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 18
|
|
repo_id: 4
|
|
type: 5
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 19
|
|
repo_id: 4
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 20
|
|
repo_id: 4
|
|
type: 2
|
|
config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 21
|
|
repo_id: 4
|
|
type: 3
|
|
config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowSquash\":true}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 22
|
|
repo_id: 2
|
|
type: 4
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 23
|
|
repo_id: 2
|
|
type: 5
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 24
|
|
repo_id: 2
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 946684810
|
|
|
|
-
|
|
id: 25
|
|
repo_id: 32
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 26
|
|
repo_id: 32
|
|
type: 2
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 27
|
|
repo_id: 24
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 28
|
|
repo_id: 24
|
|
type: 2
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 29
|
|
repo_id: 16
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 30
|
|
repo_id: 23
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 31
|
|
repo_id: 27
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 32
|
|
repo_id: 28
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 33
|
|
repo_id: 36
|
|
type: 4
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 34
|
|
repo_id: 36
|
|
type: 5
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 35
|
|
repo_id: 36
|
|
type: 1
|
|
config: "{}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 36
|
|
repo_id: 36
|
|
type: 2
|
|
config: "{\"EnableTimetracker\":true,\"AllowOnlyContributorsToTrackTime\":true}"
|
|
created_unix: 1524304355
|
|
|
|
-
|
|
id: 37
|
|
repo_id: 36
|
|
type: 3
|
|
config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}"
|
|
created_unix: 1524304355
|