whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: prepend user id to message if whimsysvn role account is used
Date Sun, 04 Aug 2019 02:00:13 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a2d689  prepend user id to message if whimsysvn role account is used
0a2d689 is described below

commit 0a2d689aad2ac3136fb0ba20db9cbb0984cc5ff2
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sat Aug 3 21:59:59 2019 -0400

    prepend user id to message if whimsysvn role account is used
---
 www/board/agenda/views/actions/post.json.rb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/board/agenda/views/actions/post.json.rb b/www/board/agenda/views/actions/post.json.rb
index 4102816..8a901ef 100644
--- a/www/board/agenda/views/actions/post.json.rb
+++ b/www/board/agenda/views/actions/post.json.rb
@@ -22,6 +22,9 @@ member_or_officer = user.asf_member? or ASF.pmc_chairs.include? user
 credentials = member_or_officer and env.password ? 
   nil : [['--username', 'whimsysvn']]
 
+# prepend user id to message if whimsysvn role account is used
+@message = "#{env.user}: #{@message}" if env.user and credentials
+
 Agenda.update(@agenda, @message, auth: credentials) do |agenda|
   # quick parse of agenda
   parsed = ASF::Board::Agenda.parse(agenda, true)


Mime
View raw message