Skip to content

Commit

Permalink
add difference url (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
wate authored and sciyoshi committed Jan 30, 2019
1 parent 69ad729 commit 7a0eacd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/redmine_slack/listener.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ def controller_wiki_edit_after_save(context = { })
project_url = "<#{object_url project}|#{escape project}>"
page_url = "<#{object_url page}|#{page.title}>"
comment = "[#{project_url}] #{page_url} updated by *#{user}*"
if page.content.version > 1
comment << " [<#{object_url page}/diff?version=#{page.content.version}|difference>]"
end

channel = channel_for_project project
url = url_for_project project
Expand Down

0 comments on commit 7a0eacd

Please sign in to comment.