pronto 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +9 -3
- data/lib/pronto/config_file.rb +1 -1
- data/lib/pronto/github.rb +1 -0
- data/lib/pronto/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d9e785fa465bad216b0f336498835b2aa1187fd0
|
|
4
|
+
data.tar.gz: 9bb5d7cda10cf493fd3ced190babc7f1cc86c42b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68cf5d28920fcd9093953af0227ed63cfed52946053980b77e0b274e2a9483cd3279ed16d3ab034a019392b9ee64a325b9b5e600c9180ba3c755c3810078e460
|
|
7
|
+
data.tar.gz: fa5025e68712ae7bc31cb49b3ffe357dae0069af9f567892243fcd853cbf121ea8fb84b32b95b6bf17c19ee8e0bcfd5ab101792625a98221733734cc9cd6f35b
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -14,7 +14,7 @@ to your [styleguide](https://github.com/mmozuras/pronto-rubocop), [are DRY](http
|
|
|
14
14
|
|
|
15
15
|

|
|
16
16
|
|
|
17
|
-
_This README might be ahead of the latest release. Find the README for v0.9.
|
|
17
|
+
_This README might be ahead of the latest release. Find the README for v0.9.2 [here](https://github.com/mmozuras/pronto/blob/v0.9.2/README.md)._
|
|
18
18
|
|
|
19
19
|
* [Installation](#installation)
|
|
20
20
|
* [Usage](#usage)
|
|
@@ -105,12 +105,18 @@ Then just run it:
|
|
|
105
105
|
$ PRONTO_GITHUB_ACCESS_TOKEN=token pronto run -f github -c origin/master
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
If you want comments to appear on pull request diff, instead of commit:
|
|
109
109
|
|
|
110
110
|
```sh
|
|
111
111
|
$ PRONTO_GITHUB_ACCESS_TOKEN=token pronto run -f github_pr -c origin/master
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
+
If you want review to appear on pull request diff, instead of comments:
|
|
115
|
+
|
|
116
|
+
```sh
|
|
117
|
+
$ PRONTO_GITHUB_ACCESS_TOKEN=token pronto run -f github_pr_review -c origin/master
|
|
118
|
+
```
|
|
119
|
+
|
|
114
120
|
Use `GithubStatusFormatter` to submit [commit status](https://github.com/blog/1227-commit-status-api):
|
|
115
121
|
|
|
116
122
|
```sh
|
|
@@ -129,7 +135,7 @@ As an alternative, you can also set up a rake task:
|
|
|
129
135
|
```ruby
|
|
130
136
|
Pronto::GemNames.new.to_a.each { |gem_name| require "pronto/#{gem_name}" }
|
|
131
137
|
|
|
132
|
-
formatter = Pronto::Formatter::GithubFormatter.new #
|
|
138
|
+
formatter = Pronto::Formatter::GithubFormatter.new # also possible: GithubPullRequestFormatter, GithubPullRequestReviewFormatter
|
|
133
139
|
status_formatter = Pronto::Formatter::GithubStatusFormatter.new
|
|
134
140
|
formatters = [formatter, status_formatter]
|
|
135
141
|
Pronto.run('origin/master', '.', formatters)
|
data/lib/pronto/config_file.rb
CHANGED
data/lib/pronto/github.rb
CHANGED
|
@@ -41,6 +41,7 @@ module Pronto
|
|
|
41
41
|
def create_pull_request_review(comments)
|
|
42
42
|
options = {
|
|
43
43
|
event: 'COMMENT',
|
|
44
|
+
accept: 'application/vnd.github.black-cat-preview+json', # https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review
|
|
44
45
|
comments: comments.map do |c|
|
|
45
46
|
{ path: c.path, position: c.position, body: c.body }
|
|
46
47
|
end
|
data/lib/pronto/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pronto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mindaugas Mozūras
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rugged
|