Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
70ca0b7a
Commit
70ca0b7a
authored
Mar 02, 2020
by
Zac Wood
Browse files
Added username to Slack Message
parent
62e4e340
Pipeline
#5453
passed with stages
in 2 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
go/go/utils.py
View file @
70ca0b7a
...
...
@@ -4,8 +4,9 @@ from threading import Thread
def
build_msg
(
request
):
target
=
request
.
POST
[
'target'
]
email
=
request
.
user
.
email
short
=
f
'go.gmu.edu/
{
request
.
POST
[
"short"
]
}
'
return
f
'Short:
{
short
}
\n
Target:
{
target
}
'
return
f
'
User:
{
email
}
\n
Short:
{
short
}
\n
Target:
{
target
}
'
def
send_slack_message
(
msg
):
# Send slack message
...
...
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