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
ce61de68
Commit
ce61de68
authored
Oct 21, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use allowed slack team name.
parent
cccfede3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/models/project_services/slack_service.rb
app/models/project_services/slack_service.rb
+2
-1
No files found.
app/models/project_services/slack_service.rb
View file @
ce61de68
...
@@ -40,7 +40,8 @@ class SlackService < Service
...
@@ -40,7 +40,8 @@ class SlackService < Service
project_name:
project_name
project_name:
project_name
))
))
credentials
=
webhook
.
match
(
/(\w*).slack.com.*services\/(.*)/
)
credentials
=
webhook
.
match
(
/([\w-]*).slack.com.*services\/(.*)/
)
if
credentials
.
present?
if
credentials
.
present?
subdomain
=
credentials
[
1
]
subdomain
=
credentials
[
1
]
token
=
credentials
[
2
].
split
(
"token="
).
last
token
=
credentials
[
2
].
split
(
"token="
).
last
...
...
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