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
Jochen
gitlab-irc
Commits
38baac9a
Commit
38baac9a
authored
Apr 30, 2017
by
Jochen
🎱
Browse files
Fix tinyurl
parent
fb553d43
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
38baac9a
.DS_Store
config/config.yml
irc.log
tmp/msg.txt
lib/message_formatter.rb
View file @
38baac9a
...
...
@@ -16,8 +16,7 @@ class MessageFormatter
info
[
'commits'
].
each
do
|
ci
|
url
=
ci
[
'url'
]
ci_title
=
ci
[
'message'
].
lines
.
first
.
chomp
# short = config['msg']['short_uri'] ? "#{short_url(url)}" : "#{url}"
short
=
short_url
(
"http://www.google.com/huhuhuhuhuhuhuxxxx"
)
short
=
config
[
'msg'
][
'short_uri'
]
?
"
#{
short_url
(
url
)
}
"
:
"
#{
url
}
"
msg
=
"[
#{
info
[
'repository'
][
'name'
].
capitalize
}
(
#{
branch
}
)] by
#{
ci
[
'author'
][
'name'
]
}
|
#{
ci_title
}
|
#{
short
}
"
msgs
<<
msg
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