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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
dc4d9386
Commit
dc4d9386
authored
Aug 31, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix only/except policy CI/CD linter
parent
ef030709
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/views/ci/lints/_create.html.haml
app/views/ci/lints/_create.html.haml
+2
-2
spec/views/ci/lints/show.html.haml_spec.rb
spec/views/ci/lints/show.html.haml_spec.rb
+2
-2
No files found.
app/views/ci/lints/_create.html.haml
View file @
dc4d9386
...
...
@@ -22,10 +22,10 @@
%b
Tag list:
=
build
[
:tag_list
].
to_a
.
join
(
", "
)
%br
%b
Refs onl
y:
%b
Only polic
y:
=
@jobs
[
build
[
:name
].
to_sym
][
:only
].
to_a
.
join
(
", "
)
%br
%b
Refs except
:
%b
Except policy
:
=
@jobs
[
build
[
:name
].
to_sym
][
:except
].
to_a
.
join
(
", "
)
%br
%b
Environment:
...
...
spec/views/ci/lints/show.html.haml_spec.rb
View file @
dc4d9386
...
...
@@ -73,8 +73,8 @@ describe 'ci/lints/show' do
render
expect
(
rendered
).
to
have_content
(
'Tag list: dotnet'
)
expect
(
rendered
).
to
have_content
(
'
Refs only:
test@dude/repo'
)
expect
(
rendered
).
to
have_content
(
'
Refs except:
deploy'
)
expect
(
rendered
).
to
have_content
(
'
Only policy: refs,
test@dude/repo'
)
expect
(
rendered
).
to
have_content
(
'
Except policy: refs,
deploy'
)
expect
(
rendered
).
to
have_content
(
'Environment: testing'
)
expect
(
rendered
).
to
have_content
(
'When: on_success'
)
end
...
...
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