aboutsummaryrefslogtreecommitdiffstats
path: root/models/fixtures
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-06-30 15:57:59 +0800
committerzeripath <art27@cantab.net>2019-06-30 08:57:59 +0100
commitff85dd3e12c05be98d9132de2e629523d096f712 (patch)
treec0b5d69eef2fd859204437bd8b206e06a7b8a47d /models/fixtures
parent1e46eedce721e22e3e1e94eec6e0afccd36147c1 (diff)
downloadgitea-ff85dd3e12c05be98d9132de2e629523d096f712.tar.gz
gitea-ff85dd3e12c05be98d9132de2e629523d096f712.zip
Add commit statuses reports on pull request view (#6845)
* Add commit statuses reports on pull view * Add some translations * improve the UI * fix fmt * fix tests * add a new test git repo to fix tests * fix bug when headRepo or headBranch missing * fix tests * fix tests * fix consistency * fix tests * fix tests * change the test repo * fix tests * fix tests * fix migration * keep db size consistency * fix translation * change commit hash status table unique index * remove unused table * use char instead varchar * make hashCommitStatusContext private * split merge section with status check on pull view ui * fix tests; fix arc-green theme on pull ui
Diffstat (limited to 'models/fixtures')
-rw-r--r--models/fixtures/issue.yml11
-rw-r--r--models/fixtures/pull_request.yml14
-rw-r--r--models/fixtures/repository.yml4
3 files changed, 27 insertions, 2 deletions
diff --git a/models/fixtures/issue.yml b/models/fixtures/issue.yml
index 01bd8b86f6..585242a14d 100644
--- a/models/fixtures/issue.yml
+++ b/models/fixtures/issue.yml
@@ -86,3 +86,14 @@
created_unix: 946684830
updated_unix: 978307200
+-
+ id: 8
+ repo_id: 10
+ index: 1
+ poster_id: 11
+ name: pr2
+ content: a pull request
+ is_closed: false
+ is_pull: true
+ created_unix: 946684820
+ updated_unix: 978307180 \ No newline at end of file
diff --git a/models/fixtures/pull_request.yml b/models/fixtures/pull_request.yml
index d8313f9f90..baaaf6bb8a 100644
--- a/models/fixtures/pull_request.yml
+++ b/models/fixtures/pull_request.yml
@@ -26,3 +26,17 @@
base_branch: master
merge_base: fedcba9876543210
has_merged: false
+
+-
+ id: 3
+ type: 0 # gitea pull request
+ status: 2 # mergable
+ issue_id: 8
+ index: 1
+ head_repo_id: 11
+ base_repo_id: 10
+ head_user_name: user13
+ head_branch: branch2
+ base_branch: master
+ merge_base: 0abcb056019adb83
+ has_merged: false \ No newline at end of file
diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml
index 609f421a90..f43fae3d67 100644
--- a/models/fixtures/repository.yml
+++ b/models/fixtures/repository.yml
@@ -118,7 +118,7 @@
is_private: false
num_issues: 0
num_closed_issues: 0
- num_pulls: 0
+ num_pulls: 1
num_closed_pulls: 0
is_mirror: false
num_forks: 1
@@ -496,4 +496,4 @@
num_stars: 0
num_forks: 0
num_issues: 0
- is_mirror: false
+ is_mirror: false \ No newline at end of file