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
Léo-Paul Géneau
gitlab-ce
Commits
07bcabb3
Commit
07bcabb3
authored
Jul 28, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve wording related to deploy chatops command
parent
e2f73c86
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
doc/integration/slash_commands.md
doc/integration/slash_commands.md
+1
-1
lib/gitlab/slash_commands/presenters/deploy.rb
lib/gitlab/slash_commands/presenters/deploy.rb
+1
-1
spec/lib/gitlab/slash_commands/command_spec.rb
spec/lib/gitlab/slash_commands/command_spec.rb
+1
-1
spec/lib/gitlab/slash_commands/deploy_spec.rb
spec/lib/gitlab/slash_commands/deploy_spec.rb
+3
-3
spec/lib/gitlab/slash_commands/presenters/deploy_spec.rb
spec/lib/gitlab/slash_commands/presenters/deploy_spec.rb
+1
-1
No files found.
doc/integration/slash_commands.md
View file @
07bcabb3
...
...
@@ -24,7 +24,7 @@ It is possible to create new issue, display issue details and search up to 5 iss
## Deploy command
In order to deploy to an environment, GitLab will try to find a deployment
action in the pipeline.
manual
action in the pipeline.
If there is only one action for a given environment, it is going to be triggered.
If there is more than one action defined, GitLab will try to find an action
...
...
lib/gitlab/slash_commands/presenters/deploy.rb
View file @
07bcabb3
...
...
@@ -10,7 +10,7 @@ module Gitlab
end
def
action_not_found
ephemeral_response
(
text:
"Couldn't find a deployment action."
)
ephemeral_response
(
text:
"Couldn't find a deployment
manual
action."
)
end
end
end
...
...
spec/lib/gitlab/slash_commands/command_spec.rb
View file @
07bcabb3
...
...
@@ -80,7 +80,7 @@ describe Gitlab::SlashCommands::Command do
it
'returns error'
do
expect
(
subject
[
:response_type
]).
to
be
(
:ephemeral
)
expect
(
subject
[
:text
]).
to
include
(
'Too many actions defined'
)
expect
(
subject
[
:text
]).
to
include
(
"Couldn't find a deployment manual action."
)
end
end
end
...
...
spec/lib/gitlab/slash_commands/deploy_spec.rb
View file @
07bcabb3
...
...
@@ -22,7 +22,7 @@ describe Gitlab::SlashCommands::Deploy do
context
'if no environment is defined'
do
it
'does not execute an action'
do
expect
(
subject
[
:response_type
]).
to
be
(
:ephemeral
)
expect
(
subject
[
:text
]).
to
eq
"Couldn't find a deployment action."
expect
(
subject
[
:text
]).
to
eq
"Couldn't find a deployment
manual
action."
end
end
...
...
@@ -35,7 +35,7 @@ describe Gitlab::SlashCommands::Deploy do
context
'without actions'
do
it
'does not execute an action'
do
expect
(
subject
[
:response_type
]).
to
be
(
:ephemeral
)
expect
(
subject
[
:text
]).
to
eq
"Couldn't find a deployment action."
expect
(
subject
[
:text
]).
to
eq
"Couldn't find a deployment
manual
action."
end
end
...
...
@@ -66,7 +66,7 @@ describe Gitlab::SlashCommands::Deploy do
end
it
'returns error about too many actions defined'
do
expect
(
subject
[
:text
]).
to
eq
(
"Couldn't find a deployment action."
)
expect
(
subject
[
:text
]).
to
eq
(
"Couldn't find a deployment
manual
action."
)
expect
(
subject
[
:response_type
]).
to
be
(
:ephemeral
)
end
end
...
...
spec/lib/gitlab/slash_commands/presenters/deploy_spec.rb
View file @
07bcabb3
...
...
@@ -27,7 +27,7 @@ describe Gitlab::SlashCommands::Presenters::Deploy do
it
'tells the user there is no action'
do
expect
(
subject
[
:response_type
]).
to
be
(
:ephemeral
)
expect
(
subject
[
:text
]).
to
eq
"Couldn't find a deployment action."
expect
(
subject
[
:text
]).
to
eq
"Couldn't find a deployment
manual
action."
end
end
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