mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/redmine-backporter.rb: require view_changesets permission.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5b4ff7d6f9
commit
a64443987c
2 changed files with 13 additions and 8 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Dec 24 13:25:22 2014 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* tool/redmine-backporter.rb: require view_changesets permission.
|
||||
|
||||
Wed Dec 24 13:00:24 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* tool/downloader.rb (Downloader.download): fix the exception to
|
||||
|
|
|
@ -261,6 +261,9 @@ while true
|
|||
uri = URI(uri+".json?include=children,attachments,relations,changesets,journals")
|
||||
res = JSON(uri.read(openuri_options))
|
||||
i = res["issue"]
|
||||
unless i["changesets"]
|
||||
abort "You don't have view_changesets permission"
|
||||
end
|
||||
id = "##{i["id"]}".color(*PRIORITIES[i["priority"]["name"]])
|
||||
sio = StringIO.new
|
||||
sio.puts <<eom
|
||||
|
@ -276,7 +279,6 @@ eom
|
|||
#end
|
||||
sio.puts i["description"]
|
||||
sio.puts
|
||||
if i["changesets"]
|
||||
sio.puts "= changesets"
|
||||
@changesets = []
|
||||
i["changesets"].each do |x|
|
||||
|
@ -284,7 +286,6 @@ eom
|
|||
sio.puts "== #{x["revision"]} #{x["committed_on"]} #{x["user"]["name"] rescue nil}"
|
||||
sio.puts x["comments"]
|
||||
end
|
||||
end
|
||||
if i["journals"] && !i["journals"].empty?
|
||||
sio.puts "= journals"
|
||||
i["journals"].each do |x|
|
||||
|
|
Loading…
Reference in a new issue