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
ef97b27d
Commit
ef97b27d
authored
Mar 22, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update chat ops service that creates the ops pipeline
parent
c206ad40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
ee/lib/gitlab/chat/command.rb
ee/lib/gitlab/chat/command.rb
+8
-10
No files found.
ee/lib/gitlab/chat/command.rb
View file @
ef97b27d
...
...
@@ -55,24 +55,22 @@ module Gitlab
)
service
.
execute
(
:chat
)
do
|
pipeline
|
create
_environment_variables
(
pipeline
)
create
_chat_data
(
pipeline
)
build
_environment_variables
(
pipeline
)
build
_chat_data
(
pipeline
)
end
end
# pipeline - The `Ci::Pipeline` to create the environment variables for.
def
create_environment_variables
(
pipeline
)
pipeline
.
variables
.
create!
(
[
{
key:
'CHAT_INPUT'
,
value:
arguments
},
{
key:
'CHAT_CHANNEL'
,
value:
channel
}
]
def
build_environment_variables
(
pipeline
)
pipeline
.
variables
.
build
(
[{
key:
'CHAT_INPUT'
,
value:
arguments
},
{
key:
'CHAT_CHANNEL'
,
value:
channel
}]
)
end
# pipeline - The `Ci::Pipeline` to create the chat data for.
def
create
_chat_data
(
pipeline
)
pipeline
.
create_chat_data!
(
def
build
_chat_data
(
pipeline
)
pipeline
.
build_chat_data
(
chat_name_id:
chat_name
.
id
,
response_url:
response_url
)
...
...
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