0 Pronto messages posted to GitHub
I'm trying to figure out why aren't any the warnings being sent to the PR (the status is being sent though, so I know it's not an auth error).
Here's the output:
$ pronto version
0.9.5
$ PRONTO_GITHUB_ACCESS_TOKEN=XXXXXXXXXX PRONTO_PULL_REQUEST_ID=6032 bin/bundle exec pronto run -c origin/master
app/controllers/application_controller.rb:340 W: Layout/IndentationConsistency: Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)
app/controllers/application_controller.rb:345 W: Layout/EmptyLines: Extra blank line detected. (https://github.com/bbatsov/ruby-style-guide#two-or-more-empty-lines)
$ PRONTO_GITHUB_ACCESS_TOKEN=XXXXXXXXXX PRONTO_PULL_REQUEST_ID=6032 bin/bundle exec pronto run -f github_pr github_status -c origin/master
0 Pronto messages posted to GitHub
Pronto::Rubocop
I have the same issue
@jasantunes there could be a couple different things going on. Could you add "verbose: true" to .pronto.yml and post the output you get?
Thanks for looking into this @mmozuras! I've created a new testing PR with a couple of rubocop warnings. This is the log from the build/test machine.
+ bundle exec pronto run -c origin/master
Running Pronto::Rubocop
app/controllers/application_controller.rb:346 W: Layout/IndentationConsistency: Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)
app/controllers/application_controller.rb:349 W: Layout/EmptyLines: Extra blank line detected. (https://github.com/bbatsov/ruby-style-guide#two-or-more-empty-lines)
+ PRONTO_GITHUB_ACCESS_TOKEN=<OMITTED>
+ PRONTO_PULL_REQUEST_ID=6383
+ bundle exec pronto run -f github_pr github_status -c origin/master
Running Pronto::Rubocop
Creating a comment from message: #<Pronto::Message:0x00000001a2e850 @path="app/controllers/application_controller.rb", @line=#<struct Pronto::Git::Line line=#<Rugged::Diff::Line:13741200 {line_origin: :addition, content: " helper_method :url_escape\n">, patch=#<struct Pronto::Git::Patch patch=#<Rugged::Patch:15892220>, repo=#<Pronto::Git::Repository:0x00000001e52620 @repo=#<Rugged::Repository:15898960 {path: "/home/u8466/src/repo/reputedly/.git/"}>>>, hunk=#<Rugged::Diff::Hunk:13741680 {header: "@@ -343,8 +343,10 @@ class ApplicationController < ActionController::Base\n", count: 11}>>, @level=:warning, @msg="Layout/IndentationConsistency: Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)", @runner=Pronto::Rubocop, @commit_sha="98f75ef9ffeb99fa7d13c24c83cdaa738169d39b">
Creating a comment from message: #<Pronto::Message:0x00000001a2d7c0 @path="app/controllers/application_controller.rb", @line=#<struct Pronto::Git::Line line=#<Rugged::Diff::Line:13741000 {line_origin: :addition, content: "\n">, patch=#<struct Pronto::Git::Patch patch=#<Rugged::Patch:15892220>, repo=#<Pronto::Git::Repository:0x00000001e52620 @repo=#<Rugged::Repository:15898960 {path: "/home/u8466/src/repo/reputedly/.git/"}>>>, hunk=#<Rugged::Diff::Hunk:13741680 {header: "@@ -343,8 +343,10 @@ class ApplicationController < ActionController::Base\n", count: 11}>>, @level=:warning, @msg="Layout/EmptyLines: Extra blank line detected. (https://github.com/bbatsov/ruby-style-guide#two-or-more-empty-lines)", @runner=Pronto::Rubocop, @commit_sha="98f75ef9ffeb99fa7d13c24c83cdaa738169d39b">
0 Pronto messages posted to GitHub
Creating comment status on 98f75ef9ffeb99fa7d13c24c83cdaa738169d39b
Pronto::Rubocop
As you can see it finds both warnings and it even posts the status to the PR (0 Pronto messages posted to GitHub). However, no rubocop warnings show up as comments in the PR.
We ran into this issue as well. Any updates?
We ran into the same issue, any updates ?
same issue ....
Thanks for looking into this @mmozuras! I've created a new testing PR with a couple of rubocop warnings. This is the log from the build/test machine.
+ bundle exec pronto run -c origin/master Running Pronto::Rubocop app/controllers/application_controller.rb:346 W: Layout/IndentationConsistency: Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation) app/controllers/application_controller.rb:349 W: Layout/EmptyLines: Extra blank line detected. (https://github.com/bbatsov/ruby-style-guide#two-or-more-empty-lines) + PRONTO_GITHUB_ACCESS_TOKEN=<OMITTED> + PRONTO_PULL_REQUEST_ID=6383 + bundle exec pronto run -f github_pr github_status -c origin/master Running Pronto::Rubocop Creating a comment from message: #<Pronto::Message:0x00000001a2e850 @path="app/controllers/application_controller.rb", @line=#<struct Pronto::Git::Line line=#<Rugged::Diff::Line:13741200 {line_origin: :addition, content: " helper_method :url_escape\n">, patch=#<struct Pronto::Git::Patch patch=#<Rugged::Patch:15892220>, repo=#<Pronto::Git::Repository:0x00000001e52620 @repo=#<Rugged::Repository:15898960 {path: "/home/u8466/src/repo/reputedly/.git/"}>>>, hunk=#<Rugged::Diff::Hunk:13741680 {header: "@@ -343,8 +343,10 @@ class ApplicationController < ActionController::Base\n", count: 11}>>, @level=:warning, @msg="Layout/IndentationConsistency: Inconsistent indentation detected. (https://github.com/bbatsov/ruby-style-guide#spaces-indentation)", @runner=Pronto::Rubocop, @commit_sha="98f75ef9ffeb99fa7d13c24c83cdaa738169d39b"> Creating a comment from message: #<Pronto::Message:0x00000001a2d7c0 @path="app/controllers/application_controller.rb", @line=#<struct Pronto::Git::Line line=#<Rugged::Diff::Line:13741000 {line_origin: :addition, content: "\n">, patch=#<struct Pronto::Git::Patch patch=#<Rugged::Patch:15892220>, repo=#<Pronto::Git::Repository:0x00000001e52620 @repo=#<Rugged::Repository:15898960 {path: "/home/u8466/src/repo/reputedly/.git/"}>>>, hunk=#<Rugged::Diff::Hunk:13741680 {header: "@@ -343,8 +343,10 @@ class ApplicationController < ActionController::Base\n", count: 11}>>, @level=:warning, @msg="Layout/EmptyLines: Extra blank line detected. (https://github.com/bbatsov/ruby-style-guide#two-or-more-empty-lines)", @runner=Pronto::Rubocop, @commit_sha="98f75ef9ffeb99fa7d13c24c83cdaa738169d39b"> 0 Pronto messages posted to GitHub Creating comment status on 98f75ef9ffeb99fa7d13c24c83cdaa738169d39b Pronto::RubocopAs you can see it finds both warnings and it even posts the status to the PR (
0 Pronto messages posted to GitHub). However, no rubocop warnings show up as comments in the PR.
hi @asantunes ! any luck with this ?
have some update
ostet@daisy:~/coding/overhaul-backend$pronto run -r reek -f github_pr github_status -c origin/qa
19 Pronto messages posted to GitHub
Pronto::Reek
ostet@daisy:~/coding/overhaul-backend$pronto run -r reek -f github github_pr github_status -c origin/qa
0 Pronto messages posted to GitHub
0 Pronto messages posted to GitHub
Pronto::Reek
ostet@daisy:~/coding/overhaul-backend$
working fine without github