Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1b99e5bf
Commit
1b99e5bf
authored
Apr 21, 2021
by
Jacques Erasmus
Committed by
Brandon Labuschagne
Apr 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update master to main
Updated the default branch
parent
912665e9
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
38 deletions
+37
-38
ee/spec/frontend/vue_mr_widget/components/states/mr_widget_ready_to_merge_spec.js
...widget/components/states/mr_widget_ready_to_merge_spec.js
+1
-1
spec/frontend/vue_mr_widget/components/mr_widget_header_spec.js
...rontend/vue_mr_widget/components/mr_widget_header_spec.js
+14
-14
spec/frontend/vue_mr_widget/components/states/mr_widget_commits_header_spec.js
...widget/components/states/mr_widget_commits_header_spec.js
+2
-2
spec/frontend/vue_mr_widget/components/states/mr_widget_ready_to_merge_spec.js
...widget/components/states/mr_widget_ready_to_merge_spec.js
+1
-1
spec/frontend/vue_mr_widget/deployment/deployment_mock_data.js
...frontend/vue_mr_widget/deployment/deployment_mock_data.js
+3
-3
spec/frontend/vue_mr_widget/mock_data.js
spec/frontend/vue_mr_widget/mock_data.js
+6
-6
spec/frontend/vue_mr_widget/mr_widget_options_spec.js
spec/frontend/vue_mr_widget/mr_widget_options_spec.js
+10
-11
No files found.
ee/spec/frontend/vue_mr_widget/components/states/mr_widget_ready_to_merge_spec.js
View file @
1b99e5bf
...
...
@@ -49,7 +49,7 @@ describe('ReadyToMerge', () => {
commitMessageWithDescription
:
'
This is the commit message description
'
,
shouldRemoveSourceBranch
:
true
,
canRemoveSourceBranch
:
false
,
targetBranch
:
'
ma
ster
'
,
targetBranch
:
'
ma
in
'
,
preferredAutoMergeStrategy
:
MWPS_MERGE_STRATEGY
,
availableAutoMergeStrategies
:
[
MWPS_MERGE_STRATEGY
],
mergeImmediatelyDocsPath
:
'
path/to/merge/immediately/docs
'
,
...
...
spec/frontend/vue_mr_widget/components/mr_widget_header_spec.js
View file @
1b99e5bf
...
...
@@ -34,7 +34,7 @@ describe('MRWidgetHeader', () => {
divergedCommitsCount
:
12
,
sourceBranch
:
'
mr-widget-refactor
'
,
sourceBranchLink
:
'
<a href="/foo/bar/mr-widget-refactor">Link</a>
'
,
targetBranch
:
'
ma
ster
'
,
targetBranch
:
'
ma
in
'
,
statusPath
:
'
abc
'
,
},
});
...
...
@@ -48,7 +48,7 @@ describe('MRWidgetHeader', () => {
divergedCommitsCount
:
0
,
sourceBranch
:
'
mr-widget-refactor
'
,
sourceBranchLink
:
'
<a href="/foo/bar/mr-widget-refactor">Link</a>
'
,
targetBranch
:
'
ma
ster
'
,
targetBranch
:
'
ma
in
'
,
statusPath
:
'
abc
'
,
},
});
...
...
@@ -64,14 +64,14 @@ describe('MRWidgetHeader', () => {
divergedCommitsCount
:
1
,
sourceBranch
:
'
mr-widget-refactor
'
,
sourceBranchLink
:
'
<a href="/foo/bar/mr-widget-refactor">Link</a>
'
,
targetBranch
:
'
ma
ster
'
,
targetBranchPath
:
'
/foo/bar/ma
ster
'
,
targetBranch
:
'
ma
in
'
,
targetBranchPath
:
'
/foo/bar/ma
in
'
,
statusPath
:
'
abc
'
,
},
});
expect
(
wrapper
.
vm
.
commitsBehindText
).
toBe
(
'
The source branch is <a href="/foo/bar/ma
ster
">1 commit behind</a> the target branch
'
,
'
The source branch is <a href="/foo/bar/ma
in
">1 commit behind</a> the target branch
'
,
);
});
...
...
@@ -81,14 +81,14 @@ describe('MRWidgetHeader', () => {
divergedCommitsCount
:
2
,
sourceBranch
:
'
mr-widget-refactor
'
,
sourceBranchLink
:
'
<a href="/foo/bar/mr-widget-refactor">Link</a>
'
,
targetBranch
:
'
ma
ster
'
,
targetBranchPath
:
'
/foo/bar/ma
ster
'
,
targetBranch
:
'
ma
in
'
,
targetBranchPath
:
'
/foo/bar/ma
in
'
,
statusPath
:
'
abc
'
,
},
});
expect
(
wrapper
.
vm
.
commitsBehindText
).
toBe
(
'
The source branch is <a href="/foo/bar/ma
ster
">2 commits behind</a> the target branch
'
,
'
The source branch is <a href="/foo/bar/ma
in
">2 commits behind</a> the target branch
'
,
);
});
});
...
...
@@ -105,7 +105,7 @@ describe('MRWidgetHeader', () => {
sourceBranchRemoved
:
false
,
targetBranchPath
:
'
foo/bar/commits-path
'
,
targetBranchTreePath
:
'
foo/bar/tree/path
'
,
targetBranch
:
'
ma
ster
'
,
targetBranch
:
'
ma
in
'
,
isOpen
:
true
,
emailPatchesPath
:
'
/mr/email-patches
'
,
plainDiffPath
:
'
/mr/plainDiffPath
'
,
...
...
@@ -125,7 +125,7 @@ describe('MRWidgetHeader', () => {
});
it
(
'
renders target branch
'
,
()
=>
{
expect
(
wrapper
.
find
(
'
.js-target-branch
'
).
text
().
trim
()).
toBe
(
'
ma
ster
'
);
expect
(
wrapper
.
find
(
'
.js-target-branch
'
).
text
().
trim
()).
toBe
(
'
ma
in
'
);
});
});
...
...
@@ -138,7 +138,7 @@ describe('MRWidgetHeader', () => {
sourceBranchRemoved
:
false
,
targetBranchPath
:
'
foo/bar/commits-path
'
,
targetBranchTreePath
:
'
foo/bar/tree/path
'
,
targetBranch
:
'
ma
ster
'
,
targetBranch
:
'
ma
in
'
,
isOpen
:
true
,
canPushToSourceBranch
:
true
,
emailPatchesPath
:
'
/mr/email-patches
'
,
...
...
@@ -227,7 +227,7 @@ describe('MRWidgetHeader', () => {
sourceBranchRemoved
:
false
,
targetBranchPath
:
'
foo/bar/commits-path
'
,
targetBranchTreePath
:
'
foo/bar/tree/path
'
,
targetBranch
:
'
ma
ster
'
,
targetBranch
:
'
ma
in
'
,
isOpen
:
false
,
emailPatchesPath
:
'
/mr/email-patches
'
,
plainDiffPath
:
'
/mr/plainDiffPath
'
,
...
...
@@ -257,7 +257,7 @@ describe('MRWidgetHeader', () => {
sourceBranchRemoved
:
false
,
targetBranchPath
:
'
foo/bar/commits-path
'
,
targetBranchTreePath
:
'
foo/bar/tree/path
'
,
targetBranch
:
'
ma
ster
'
,
targetBranch
:
'
ma
in
'
,
isOpen
:
true
,
emailPatchesPath
:
'
/mr/email-patches
'
,
plainDiffPath
:
'
/mr/plainDiffPath
'
,
...
...
@@ -281,7 +281,7 @@ describe('MRWidgetHeader', () => {
sourceBranchRemoved
:
false
,
targetBranchPath
:
'
foo/bar/commits-path
'
,
targetBranchTreePath
:
'
foo/bar/tree/path
'
,
targetBranch
:
'
ma
ster
'
,
targetBranch
:
'
ma
in
'
,
isOpen
:
true
,
emailPatchesPath
:
'
/mr/email-patches
'
,
plainDiffPath
:
'
/mr/plainDiffPath
'
,
...
...
spec/frontend/vue_mr_widget/components/states/mr_widget_commits_header_spec.js
View file @
1b99e5bf
...
...
@@ -8,7 +8,7 @@ describe('Commits header component', () => {
wrapper
=
shallowMount
(
CommitsHeader
,
{
propsData
:
{
isSquashEnabled
:
false
,
targetBranch
:
'
ma
ster
'
,
targetBranch
:
'
ma
in
'
,
commitsCount
:
5
,
isFastForwardEnabled
:
false
,
...
props
,
...
...
@@ -94,7 +94,7 @@ describe('Commits header component', () => {
it
(
'
has correct target branch displayed
'
,
()
=>
{
createComponent
();
expect
(
findTargetBranchMessage
().
text
()).
toBe
(
'
ma
ster
'
);
expect
(
findTargetBranchMessage
().
text
()).
toBe
(
'
ma
in
'
);
});
it
(
'
does has merge commit part of the message
'
,
()
=>
{
...
...
spec/frontend/vue_mr_widget/components/states/mr_widget_ready_to_merge_spec.js
View file @
1b99e5bf
...
...
@@ -42,7 +42,7 @@ const createTestMr = (customConfig) => {
commitMessageWithDescription
,
shouldRemoveSourceBranch
:
true
,
canRemoveSourceBranch
:
false
,
targetBranch
:
'
ma
ster
'
,
targetBranch
:
'
ma
in
'
,
preferredAutoMergeStrategy
:
MWPS_MERGE_STRATEGY
,
availableAutoMergeStrategies
:
[
MWPS_MERGE_STRATEGY
],
mergeImmediatelyDocsPath
:
'
path/to/merge/immediately/docs
'
,
...
...
spec/frontend/vue_mr_widget/deployment/deployment_mock_data.js
View file @
1b99e5bf
...
...
@@ -45,15 +45,15 @@ const deploymentMockData = {
changes
:
[
{
path
:
'
index.html
'
,
external_url
:
'
http://root-ma
ster
-patch-91341.volatile-watch.surge.sh/index.html
'
,
external_url
:
'
http://root-ma
in
-patch-91341.volatile-watch.surge.sh/index.html
'
,
},
{
path
:
'
imgs/gallery.html
'
,
external_url
:
'
http://root-ma
ster
-patch-91341.volatile-watch.surge.sh/imgs/gallery.html
'
,
external_url
:
'
http://root-ma
in
-patch-91341.volatile-watch.surge.sh/imgs/gallery.html
'
,
},
{
path
:
'
about/
'
,
external_url
:
'
http://root-ma
ster
-patch-91341.volatile-watch.surge.sh/about/
'
,
external_url
:
'
http://root-ma
in
-patch-91341.volatile-watch.surge.sh/about/
'
,
},
],
};
...
...
spec/frontend/vue_mr_widget/mock_data.js
View file @
1b99e5bf
...
...
@@ -48,7 +48,7 @@ export default {
source_branch_link
:
'
daaaa
'
,
source_project_id
:
19
,
source_project_full_path
:
'
/group1/project1
'
,
target_branch
:
'
ma
ster
'
,
target_branch
:
'
ma
in
'
,
target_project_id
:
19
,
target_project_full_path
:
'
/group2/project2
'
,
merge_request_add_ci_config_path
:
'
/group2/project2/new/pipeline
'
,
...
...
@@ -83,7 +83,7 @@ export default {
diff_head_sha
:
'
104096c51715e12e7ae41f9333e9fa35b73f385d
'
,
diff_head_commit_short_id
:
'
104096c5
'
,
default_merge_commit_message
:
"
Merge branch 'daaaa' into 'ma
ster
'
\n\n
Update README.md
\n\n
See merge request !22
"
,
"
Merge branch 'daaaa' into 'ma
in
'
\n\n
Update README.md
\n\n
See merge request !22
"
,
pipeline
:
{
id
:
172
,
user
:
{
...
...
@@ -173,8 +173,8 @@ export default {
title
:
'
Update README.md
'
,
source_branch
:
'
feature-1
'
,
source_branch_path
:
'
/root/detached-merge-request-pipelines/branches/feature-1
'
,
target_branch
:
'
ma
ster
'
,
target_branch_path
:
'
/root/detached-merge-request-pipelines/branches/ma
ster
'
,
target_branch
:
'
ma
in
'
,
target_branch_path
:
'
/root/detached-merge-request-pipelines/branches/ma
in
'
,
},
commit
:
{
id
:
'
104096c51715e12e7ae41f9333e9fa35b73f385d
'
,
...
...
@@ -243,7 +243,7 @@ export default {
head_path
:
'
blob_path
'
,
},
codequality_help_path
:
'
code_quality.html
'
,
target_branch_path
:
'
/root/acets-app/branches/ma
ster
'
,
target_branch_path
:
'
/root/acets-app/branches/ma
in
'
,
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
'
,
...
...
@@ -264,7 +264,7 @@ export default {
ci_environments_status_url
:
'
/root/acets-app/-/merge_requests/22/ci_environments_status
'
,
project_archived
:
false
,
default_merge_commit_message_with_description
:
"
Merge branch 'daaaa' into 'ma
ster
'
\n\n
Update README.md
\n\n
See merge request !22
"
,
"
Merge branch 'daaaa' into 'ma
in
'
\n\n
Update README.md
\n\n
See merge request !22
"
,
default_squash_commit_message
:
'
Test squash commit message
'
,
diverged_commits_count
:
0
,
only_allow_merge_if_pipeline_succeeds
:
false
,
...
...
spec/frontend/vue_mr_widget/mr_widget_options_spec.js
View file @
1b99e5bf
...
...
@@ -559,15 +559,15 @@ describe('MrWidgetOptions', () => {
const
changes
=
[
{
path
:
'
index.html
'
,
external_url
:
'
http://root-ma
ster
-patch-91341.volatile-watch.surge.sh/index.html
'
,
external_url
:
'
http://root-ma
in
-patch-91341.volatile-watch.surge.sh/index.html
'
,
},
{
path
:
'
imgs/gallery.html
'
,
external_url
:
'
http://root-ma
ster
-patch-91341.volatile-watch.surge.sh/imgs/gallery.html
'
,
external_url
:
'
http://root-ma
in
-patch-91341.volatile-watch.surge.sh/imgs/gallery.html
'
,
},
{
path
:
'
about/
'
,
external_url
:
'
http://root-ma
ster
-patch-91341.volatile-watch.surge.sh/about/
'
,
external_url
:
'
http://root-ma
in
-patch-91341.volatile-watch.surge.sh/about/
'
,
},
];
const
deploymentMockData
=
{
...
...
@@ -688,22 +688,22 @@ describe('MrWidgetOptions', () => {
scheduled_actions
:
[],
},
ref
:
{
name
:
'
ma
ster
'
,
path
:
'
/root/ci-web-terminal/commits/ma
ster
'
,
name
:
'
ma
in
'
,
path
:
'
/root/ci-web-terminal/commits/ma
in
'
,
tag
:
false
,
branch
:
true
,
},
commit
:
{
id
:
'
aa1939133d373c94879becb79d91828a892ee319
'
,
short_id
:
'
aa193913
'
,
title
:
"
Merge branch 'ma
ster-test' into 'master
'
"
,
title
:
"
Merge branch 'ma
in-test' into 'main
'
"
,
created_at
:
'
2018-10-22T11:41:33.000Z
'
,
parent_ids
:
[
'
4622f4dd792468993003caf2e3be978798cbe096
'
,
'
76598df914cdfe87132d0c3c40f80db9fa9396a4
'
,
],
message
:
"
Merge branch 'ma
ster-test' into 'master
'
\n\n
Update .gitlab-ci.yml
\n\n
See merge request root/ci-web-terminal!1
"
,
"
Merge branch 'ma
in-test' into 'main
'
\n\n
Update .gitlab-ci.yml
\n\n
See merge request root/ci-web-terminal!1
"
,
author_name
:
'
Administrator
'
,
author_email
:
'
admin@example.com
'
,
authored_date
:
'
2018-10-22T11:41:33.000Z
'
,
...
...
@@ -751,17 +751,16 @@ describe('MrWidgetOptions', () => {
changes
:
[
{
path
:
'
index.html
'
,
external_url
:
'
http://root-master-patch-91341.volatile-watch.surge.sh/index.html
'
,
external_url
:
'
http://root-main-patch-91341.volatile-watch.surge.sh/index.html
'
,
},
{
path
:
'
imgs/gallery.html
'
,
external_url
:
'
http://root-ma
ster
-patch-91341.volatile-watch.surge.sh/imgs/gallery.html
'
,
'
http://root-ma
in
-patch-91341.volatile-watch.surge.sh/imgs/gallery.html
'
,
},
{
path
:
'
about/
'
,
external_url
:
'
http://root-ma
ster
-patch-91341.volatile-watch.surge.sh/about/
'
,
external_url
:
'
http://root-ma
in
-patch-91341.volatile-watch.surge.sh/about/
'
,
},
],
status
:
'
success
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment