Sha256: 448b7e2c18d6f82ac6e529a90c2814dcff6c32500c14c24ac99e7c70fdba160d
Contents?: true
Size: 855 Bytes
Versions: 1
Compression:
Stored size: 855 Bytes
Contents
#!/usr/bin/env ruby require 'logger' require 'docopt' require 'face_control' require 'stash' begin USAGE = "#{File.dirname(__FILE__)}/../USAGE" args = Docopt.docopt(File.read(USAGE)) project = args['<project>'] repository = args['<repository>'] pull_request_id = args['<pull_request_id>'] config = Stash::Config.new server = Stash::Server.new(config.host, config.user, config.password, Logger.new(STDOUT)) repository = server.repository(project, repository) pull_request = repository.pull_request(pull_request_id) [ FaceControl::Inputs::RubocopJson, FaceControl::Inputs::CoffeeLintRaw ].each do |input_class| input = input_class.new input.comments.each do |comment| pull_request.add_comment(comment.file, comment.line, comment.text) end end rescue Docopt::Exit => e puts e.message end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
face_control-0.2.1 | exe/face-control |