Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test PRs to fixtures
  • Loading branch information
AndrewBezold committed Jun 30, 2020
commit 453f2592476444c3ae46e45f0bf876a2247adeee
36 changes: 36 additions & 0 deletions models/fixtures/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,39 @@
is_pull: true
created_unix: 1579194806
updated_unix: 1579194806

-
id: 12
repo_id: 49
index: 1
poster_id: 1
name: open_pr
content: PR that stays open
is_closed: false
is_pull: true
created_unix: 1593455366
updated_unix: 1593455423

-
id: 13
repo_id: 49
index: 2
poster_id: 1
name: merged_pr
content: PR that gets merged
is_closed: true
is_pull: true
created_unix: 1593455608
updated_unix: 1593455740

-
id: 14
repo_id: 49
index: 3
poster_id: 1
name: closed_pr
content: PR that gest closed without merging
is_closed: true
is_pull: true
created_unix: 1593455962
updated_unix: 1593456141
39 changes: 39 additions & 0 deletions models/fixtures/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,42 @@
base_branch: branch1
merge_base: 1234567890abcdef
has_merged: false

-
id: 6
type: 0
status: 0
issue_id: 12
index: 1
head_repo_id: 49
base_repo_id: 49
head_branch: open_pr
base_branch: master
merge_base: 0a2d4136a3bddf08e911a3ec15084ba40854e0a9
has_merged: false

-
id: 7
type: 0
status: 3
issue_id: 13
index: 2
head_repo_id: 49
base_repo_id: 49
head_branch: merged_pr
base_branch: master
merge_base: 0a2d4136a3bddf08e911a3ec15084ba40854e0a9
has_merged: true

-
id: 8
type: 0
status: 0
issue_id: 14
index: 3
head_repo_id: 49
base_repo_id: 49
head_branch: closed_pr
base_branch: master
merge_base: 0a2d4136a3bddf08e911a3ec15084ba40854e0a9
has_merged: false
14 changes: 14 additions & 0 deletions models/fixtures/repository.yml
Original file line number Diff line number Diff line change
Expand Up @@ -674,3 +674,17 @@
num_pulls: 1
is_mirror: false
status: 0

-
id: 49
owner_id: 2
owner_name: user2
lower_name: pr_repo
name: pr_repo
is_private: false
num_stars: 0
num_forks: 0
num_issues: 0
num_pulls: 3
is_mirror: false
status: 0