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
c9e9a625
Commit
c9e9a625
authored
Jun 21, 2021
by
mgandres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add target branch in pipeline editor for blank projects
Changelog: added
parent
376caaa2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/helpers/ci/pipeline_editor_helper.rb
app/helpers/ci/pipeline_editor_helper.rb
+1
-1
spec/helpers/ci/pipeline_editor_helper_spec.rb
spec/helpers/ci/pipeline_editor_helper_spec.rb
+2
-2
No files found.
app/helpers/ci/pipeline_editor_helper.rb
View file @
c9e9a625
...
...
@@ -15,7 +15,7 @@ module Ci
"ci-examples-help-page-path"
=>
help_page_path
(
'ci/examples/index'
),
"ci-help-page-path"
=>
help_page_path
(
'ci/index'
),
"commit-sha"
=>
commit_sha
,
"default-branch"
=>
project
.
default_branch
,
"default-branch"
=>
project
.
default_branch
_or_main
,
"empty-state-illustration-path"
=>
image_path
(
'illustrations/empty-state/empty-dag-md.svg'
),
"initial-branch-name"
:
params
[
:branch_name
],
"lint-help-page-path"
=>
help_page_path
(
'ci/lint'
,
anchor:
'validate-basic-logic-and-syntax'
),
...
...
spec/helpers/ci/pipeline_editor_helper_spec.rb
View file @
c9e9a625
...
...
@@ -43,7 +43,7 @@ RSpec.describe Ci::PipelineEditorHelper do
"ci-examples-help-page-path"
=>
help_page_path
(
'ci/examples/index'
),
"ci-help-page-path"
=>
help_page_path
(
'ci/index'
),
"commit-sha"
=>
project
.
commit
.
sha
,
"default-branch"
=>
project
.
default_branch
,
"default-branch"
=>
project
.
default_branch
_or_main
,
"empty-state-illustration-path"
=>
'foo'
,
"initial-branch-name"
:
nil
,
"lint-help-page-path"
=>
help_page_path
(
'ci/lint'
,
anchor:
'validate-basic-logic-and-syntax'
),
...
...
@@ -70,7 +70,7 @@ RSpec.describe Ci::PipelineEditorHelper do
"ci-examples-help-page-path"
=>
help_page_path
(
'ci/examples/index'
),
"ci-help-page-path"
=>
help_page_path
(
'ci/index'
),
"commit-sha"
=>
''
,
"default-branch"
=>
project
.
default_branch
,
"default-branch"
=>
project
.
default_branch
_or_main
,
"empty-state-illustration-path"
=>
'foo'
,
"initial-branch-name"
:
nil
,
"lint-help-page-path"
=>
help_page_path
(
'ci/lint'
,
anchor:
'validate-basic-logic-and-syntax'
),
...
...
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