2017-05-09 00:15:34 -04:00
|
|
|
export default {
|
2018-03-29 13:55:53 -04:00
|
|
|
id: 132,
|
|
|
|
iid: 22,
|
|
|
|
assignee_id: null,
|
|
|
|
author_id: 1,
|
|
|
|
description: '',
|
|
|
|
lock_version: null,
|
|
|
|
milestone_id: null,
|
|
|
|
position: 0,
|
|
|
|
state: 'merged',
|
|
|
|
title: 'Update README.md',
|
|
|
|
updated_by_id: null,
|
|
|
|
created_at: '2017-04-07T12:27:26.718Z',
|
|
|
|
updated_at: '2017-04-07T15:39:25.852Z',
|
|
|
|
time_estimate: 0,
|
|
|
|
total_time_spent: 0,
|
|
|
|
human_time_estimate: null,
|
|
|
|
human_total_time_spent: null,
|
|
|
|
in_progress_merge_commit_sha: null,
|
|
|
|
merge_commit_sha: '53027d060246c8f47e4a9310fb332aa52f221775',
|
2018-05-03 16:28:00 -04:00
|
|
|
short_merge_commit_sha: '53027d06',
|
2018-03-29 13:55:53 -04:00
|
|
|
merge_error: null,
|
|
|
|
merge_params: {
|
|
|
|
force_remove_source_branch: null,
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
merge_status: 'can_be_merged',
|
|
|
|
merge_user_id: null,
|
|
|
|
merge_when_pipeline_succeeds: false,
|
|
|
|
source_branch: 'daaaa',
|
|
|
|
source_branch_link: 'daaaa',
|
|
|
|
source_project_id: 19,
|
2018-07-10 05:35:16 -04:00
|
|
|
source_project_full_path: '/group1/project1',
|
2018-03-29 13:55:53 -04:00
|
|
|
target_branch: 'master',
|
|
|
|
target_project_id: 19,
|
2018-07-10 05:35:16 -04:00
|
|
|
target_project_full_path: '/group2/project2',
|
2018-03-29 13:55:53 -04:00
|
|
|
metrics: {
|
|
|
|
merged_by: {
|
|
|
|
name: 'Administrator',
|
|
|
|
username: 'root',
|
|
|
|
id: 1,
|
|
|
|
state: 'active',
|
|
|
|
avatar_url:
|
|
|
|
'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
|
|
|
|
web_url: 'http://localhost:3000/root',
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
merged_at: '2017-04-07T15:39:25.696Z',
|
|
|
|
closed_by: null,
|
|
|
|
closed_at: null,
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
author: {
|
|
|
|
name: 'Administrator',
|
|
|
|
username: 'root',
|
|
|
|
id: 1,
|
|
|
|
state: 'active',
|
|
|
|
avatar_url: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
|
|
|
|
web_url: 'http://localhost:3000/root',
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
merge_user: null,
|
|
|
|
diff_head_sha: '104096c51715e12e7ae41f9333e9fa35b73f385d',
|
|
|
|
diff_head_commit_short_id: '104096c5',
|
2019-02-06 07:33:11 -05:00
|
|
|
default_merge_commit_message:
|
2018-03-29 13:55:53 -04:00
|
|
|
"Merge branch 'daaaa' into 'master'\n\nUpdate README.md\n\nSee merge request !22",
|
|
|
|
pipeline: {
|
|
|
|
id: 172,
|
|
|
|
user: {
|
|
|
|
name: 'Administrator',
|
|
|
|
username: 'root',
|
|
|
|
id: 1,
|
|
|
|
state: 'active',
|
|
|
|
avatar_url:
|
|
|
|
'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
|
|
|
|
web_url: 'http://localhost:3000/root',
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
active: false,
|
|
|
|
coverage: '92.16',
|
|
|
|
path: '/root/acets-app/pipelines/172',
|
|
|
|
details: {
|
|
|
|
status: {
|
2018-07-18 12:56:19 -04:00
|
|
|
icon: 'status_success',
|
2018-03-29 13:55:53 -04:00
|
|
|
favicon: 'favicon_status_success',
|
|
|
|
text: 'passed',
|
|
|
|
label: 'passed',
|
|
|
|
group: 'success',
|
|
|
|
has_details: true,
|
|
|
|
details_path: '/root/acets-app/pipelines/172',
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
duration: null,
|
|
|
|
finished_at: '2017-04-07T14:00:14.256Z',
|
|
|
|
stages: [
|
2017-05-09 00:15:34 -04:00
|
|
|
{
|
2018-03-29 13:55:53 -04:00
|
|
|
name: 'build',
|
|
|
|
title: 'build: failed',
|
|
|
|
status: {
|
2018-07-18 12:56:19 -04:00
|
|
|
icon: 'status_failed',
|
2018-03-29 13:55:53 -04:00
|
|
|
favicon: 'favicon_status_failed',
|
|
|
|
text: 'failed',
|
|
|
|
label: 'failed',
|
|
|
|
group: 'failed',
|
|
|
|
has_details: true,
|
|
|
|
details_path: '/root/acets-app/pipelines/172#build',
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
path: '/root/acets-app/pipelines/172#build',
|
|
|
|
dropdown_path: '/root/acets-app/pipelines/172/stage.json?stage=build',
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
|
|
|
{
|
2018-03-29 13:55:53 -04:00
|
|
|
name: 'review',
|
|
|
|
title: 'review: skipped',
|
|
|
|
status: {
|
2018-07-18 12:56:19 -04:00
|
|
|
icon: 'status_skipped',
|
2018-03-29 13:55:53 -04:00
|
|
|
favicon: 'favicon_status_skipped',
|
|
|
|
text: 'skipped',
|
|
|
|
label: 'skipped',
|
|
|
|
group: 'skipped',
|
|
|
|
has_details: true,
|
|
|
|
details_path: '/root/acets-app/pipelines/172#review',
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
path: '/root/acets-app/pipelines/172#review',
|
|
|
|
dropdown_path: '/root/acets-app/pipelines/172/stage.json?stage=review',
|
|
|
|
},
|
2017-05-09 00:15:34 -04:00
|
|
|
],
|
2018-03-29 13:55:53 -04:00
|
|
|
artifacts: [],
|
|
|
|
manual_actions: [
|
2017-05-09 00:15:34 -04:00
|
|
|
{
|
2018-03-29 13:55:53 -04:00
|
|
|
name: 'stop_review',
|
|
|
|
path: '/root/acets-app/builds/1427/play',
|
|
|
|
playable: false,
|
|
|
|
},
|
|
|
|
],
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
flags: {
|
|
|
|
latest: false,
|
|
|
|
triggered: false,
|
|
|
|
stuck: false,
|
|
|
|
yaml_errors: false,
|
|
|
|
retryable: true,
|
|
|
|
cancelable: false,
|
2019-03-21 11:31:09 -04:00
|
|
|
merge_request_pipeline: false,
|
|
|
|
detached_merge_request_pipeline: true,
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
ref: {
|
|
|
|
name: 'daaaa',
|
|
|
|
path: '/root/acets-app/tree/daaaa',
|
|
|
|
tag: false,
|
|
|
|
branch: true,
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2019-03-21 11:31:09 -04:00
|
|
|
merge_request: {
|
|
|
|
iid: 1,
|
|
|
|
path: '/root/detached-merge-request-pipelines/merge_requests/1',
|
|
|
|
title: 'Update README.md',
|
|
|
|
source_branch: 'feature-1',
|
|
|
|
source_branch_path: '/root/detached-merge-request-pipelines/branches/feature-1',
|
|
|
|
target_branch: 'master',
|
|
|
|
target_branch_path: '/root/detached-merge-request-pipelines/branches/master',
|
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
commit: {
|
|
|
|
id: '104096c51715e12e7ae41f9333e9fa35b73f385d',
|
|
|
|
short_id: '104096c5',
|
|
|
|
title: 'Update README.md',
|
|
|
|
created_at: '2017-04-07T15:27:18.000+03:00',
|
|
|
|
parent_ids: ['2396536178668d8930c29d904e53bd4d06228b32'],
|
|
|
|
message: 'Update README.md',
|
|
|
|
author_name: 'Administrator',
|
|
|
|
author_email: 'admin@example.com',
|
|
|
|
authored_date: '2017-04-07T15:27:18.000+03:00',
|
|
|
|
committer_name: 'Administrator',
|
|
|
|
committer_email: 'admin@example.com',
|
|
|
|
committed_date: '2017-04-07T15:27:18.000+03:00',
|
|
|
|
author: {
|
|
|
|
name: 'Administrator',
|
|
|
|
username: 'root',
|
|
|
|
id: 1,
|
|
|
|
state: 'active',
|
|
|
|
avatar_url:
|
|
|
|
'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
|
|
|
|
web_url: 'http://localhost:3000/root',
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
author_gravatar_url:
|
|
|
|
'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
|
|
|
|
commit_url:
|
|
|
|
'http://localhost:3000/root/acets-app/commit/104096c51715e12e7ae41f9333e9fa35b73f385d',
|
|
|
|
commit_path: '/root/acets-app/commit/104096c51715e12e7ae41f9333e9fa35b73f385d',
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
retry_path: '/root/acets-app/pipelines/172/retry',
|
|
|
|
created_at: '2017-04-07T12:27:19.520Z',
|
|
|
|
updated_at: '2017-04-07T15:28:44.800Z',
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
work_in_progress: false,
|
|
|
|
source_branch_exists: false,
|
|
|
|
mergeable_discussions_state: true,
|
|
|
|
conflicts_can_be_resolved_in_ui: false,
|
|
|
|
branch_missing: true,
|
|
|
|
commits_count: 1,
|
|
|
|
has_conflicts: false,
|
|
|
|
can_be_merged: true,
|
|
|
|
has_ci: true,
|
|
|
|
ci_status: 'success',
|
|
|
|
pipeline_status_path: '/root/acets-app/merge_requests/22/pipeline_status',
|
|
|
|
issues_links: {
|
|
|
|
closing: '',
|
|
|
|
mentioned_but_not_closing: '',
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
current_user: {
|
|
|
|
can_resolve_conflicts: true,
|
|
|
|
can_remove_source_branch: false,
|
|
|
|
can_revert_on_current_merge_request: true,
|
|
|
|
can_cherry_pick_on_current_merge_request: true,
|
2017-05-09 00:15:34 -04:00
|
|
|
},
|
2018-03-29 13:55:53 -04:00
|
|
|
target_branch_path: '/root/acets-app/branches/master',
|
|
|
|
source_branch_path: '/root/acets-app/branches/daaaa',
|
|
|
|
conflict_resolution_ui_path: '/root/acets-app/merge_requests/22/conflicts',
|
|
|
|
remove_wip_path: '/root/acets-app/merge_requests/22/remove_wip',
|
|
|
|
cancel_merge_when_pipeline_succeeds_path:
|
|
|
|
'/root/acets-app/merge_requests/22/cancel_merge_when_pipeline_succeeds',
|
|
|
|
create_issue_to_resolve_discussions_path:
|
|
|
|
'/root/acets-app/issues/new?merge_request_to_resolve_discussions_of=22',
|
|
|
|
merge_path: '/root/acets-app/merge_requests/22/merge',
|
|
|
|
cherry_pick_in_fork_path:
|
|
|
|
'/root/acets-app/forks?continue%5Bnotice%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+has+been+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.+Try+to+revert+this+commit+again.&continue%5Bnotice_now%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+is+being+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.&continue%5Bto%5D=%2Froot%2Facets-app%2Fmerge_requests%2F22&namespace_key=1',
|
|
|
|
revert_in_fork_path:
|
|
|
|
'/root/acets-app/forks?continue%5Bnotice%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+has+been+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.+Try+to+cherry-pick+this+commit+again.&continue%5Bnotice_now%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+is+being+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.&continue%5Bto%5D=%2Froot%2Facets-app%2Fmerge_requests%2F22&namespace_key=1',
|
|
|
|
email_patches_path: '/root/acets-app/merge_requests/22.patch',
|
|
|
|
plain_diff_path: '/root/acets-app/merge_requests/22.diff',
|
|
|
|
status_path: '/root/acets-app/merge_requests/22.json',
|
|
|
|
merge_check_path: '/root/acets-app/merge_requests/22/merge_check',
|
|
|
|
ci_environments_status_url: '/root/acets-app/merge_requests/22/ci_environments_status',
|
|
|
|
project_archived: false,
|
2019-02-06 07:33:11 -05:00
|
|
|
default_merge_commit_message_with_description:
|
2018-03-29 13:55:53 -04:00
|
|
|
"Merge branch 'daaaa' into 'master'\n\nUpdate README.md\n\nSee merge request !22",
|
2019-02-07 10:14:56 -05:00
|
|
|
default_squash_commit_message: 'Test squash commit message',
|
2018-03-29 13:55:53 -04:00
|
|
|
diverged_commits_count: 0,
|
|
|
|
only_allow_merge_if_pipeline_succeeds: false,
|
|
|
|
commit_change_content_path: '/root/acets-app/merge_requests/22/commit_change_content',
|
2018-10-30 16:28:31 -04:00
|
|
|
merge_commit_path:
|
|
|
|
'http://localhost:3000/root/acets-app/commit/53027d060246c8f47e4a9310fb332aa52f221775',
|
|
|
|
troubleshooting_docs_path: 'help',
|
2019-02-07 10:14:56 -05:00
|
|
|
squash: true,
|
2018-03-29 13:55:53 -04:00
|
|
|
};
|
2018-11-29 17:57:30 -05:00
|
|
|
|
|
|
|
export const mockStore = {
|
|
|
|
pipeline: { id: 0 },
|
|
|
|
mergePipeline: { id: 1 },
|
|
|
|
targetBranch: 'target-branch',
|
|
|
|
sourceBranch: 'source-branch',
|
|
|
|
sourceBranchLink: 'source-branch-link',
|
|
|
|
deployments: [{ id: 0, name: 'bogus' }, { id: 1, name: 'bogus-docs' }],
|
|
|
|
postMergeDeployments: [{ id: 0, name: 'prod' }, { id: 1, name: 'prod-docs' }],
|
|
|
|
troubleshootingDocsPath: 'troubleshooting-docs-path',
|
|
|
|
ciStatus: 'ci-status',
|
|
|
|
hasCI: true,
|
|
|
|
};
|