pronto 0.9.3 → 0.9.4
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 +69 -58
- data/CONTRIBUTING.md +1 -1
- data/README.md +26 -22
- data/lib/pronto/git/repository.rb +4 -0
- data/lib/pronto/github.rb +6 -0
- data/lib/pronto/version.rb +1 -1
- data/pronto.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cafcb833e9a9abbf8b9a81b6d52154987bf3358e
|
|
4
|
+
data.tar.gz: 2a4f7ce1a906cffded0efddf59cd2bd47e026498
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ca9bc2e52411f3974824bc2936a479b5237cc8412122fba5e09c7081b11052f3c656d67d32589cc7162f7b6ca86b17de4bd8040b13e6d19096d19ee676a8927
|
|
7
|
+
data.tar.gz: 166e48146636269623f283e5dad47c8efc66343de9f089102b255f34ab3b4b1afb543d8e7e8086afb6cadbb487b9c4bd8c2e7e418a6e44f4ba57249123aacc3e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.4
|
|
4
|
+
|
|
5
|
+
### Changes
|
|
6
|
+
|
|
7
|
+
* [#227](https://github.com/prontolabs/pronto/issues/227): the repository was converted from an individual one (mmozuras/pronto) to an org (prontolabs/pronto).
|
|
8
|
+
* [#247](https://github.com/prontolabs/pronto/pull/247): try to find GitHub pull request by sha when HEAD is detached.
|
|
9
|
+
|
|
10
|
+
### Bugs fixed
|
|
11
|
+
|
|
12
|
+
* [#235](https://github.com/prontolabs/pronto/pull/235): do not submit empty pull request reviews to GitHub.
|
|
13
|
+
|
|
3
14
|
## 0.9.3
|
|
4
15
|
|
|
5
16
|
### Bugs fixed
|
|
6
17
|
|
|
7
|
-
* [#234](https://github.com/prontolabs/pronto/pull/234):
|
|
18
|
+
* [#234](https://github.com/prontolabs/pronto/pull/234): text formatter was not working, require delegate.rb in text_message_decorator.rb to fix.
|
|
8
19
|
|
|
9
20
|
## 0.9.2
|
|
10
21
|
|
|
11
22
|
### Bugs fixed
|
|
12
23
|
|
|
13
|
-
* [#231](https://github.com/
|
|
24
|
+
* [#231](https://github.com/prontolabs/pronto/pull/231): GitHub pull request review formatter was not working in some cases without Accept header.
|
|
14
25
|
|
|
15
26
|
## 0.9.1
|
|
16
27
|
|
|
@@ -22,28 +33,28 @@
|
|
|
22
33
|
|
|
23
34
|
### New features
|
|
24
35
|
|
|
25
|
-
* [#206](https://github.com/
|
|
26
|
-
* [#204](https://github.com/
|
|
27
|
-
* [#111](https://github.com/
|
|
28
|
-
* [#217](https://github.com/
|
|
36
|
+
* [#206](https://github.com/prontolabs/pronto/pull/216): add Bitbucket Server pull request formatter.
|
|
37
|
+
* [#204](https://github.com/prontolabs/pronto/pull/204): add ability configure message format for each formatter.
|
|
38
|
+
* [#111](https://github.com/prontolabs/pronto/issues/111): add `--staged` option for `pronto run` to analyze staged changes.
|
|
39
|
+
* [#217](https://github.com/prontolabs/pronto/issues/217): add GitHub pull request review formatter.
|
|
29
40
|
|
|
30
41
|
### Changes
|
|
31
42
|
|
|
32
|
-
* [#193](https://github.com/
|
|
33
|
-
* [#49](https://github.com/
|
|
34
|
-
* [#217](https://github.com/
|
|
35
|
-
* [#224](https://github.com/
|
|
36
|
-
* [#222](https://github.com/
|
|
43
|
+
* [#193](https://github.com/prontolabs/pronto/issues/193): rename `pronto run --index` option to `--unstaged`.
|
|
44
|
+
* [#49](https://github.com/prontolabs/pronto/issues/49): handle non-existance of GitHub pull requests gracefully.
|
|
45
|
+
* [#217](https://github.com/prontolabs/pronto/issues/217): depend on `octokit >= 4.7.0`.
|
|
46
|
+
* [#224](https://github.com/prontolabs/pronto/issues/224): depend on `gitlab >= 4.0.0`.
|
|
47
|
+
* [#222](https://github.com/prontolabs/pronto/pull/184): prefix PULL_REQUEST_ID env variable with `PRONTO_`.
|
|
37
48
|
|
|
38
49
|
### Bugs fixed
|
|
39
50
|
|
|
40
|
-
* [#215](https://github.com/
|
|
51
|
+
* [#215](https://github.com/prontolabs/pronto/pull/215): an exclusion of files for single runner led to those files being excluded for all runners.
|
|
41
52
|
|
|
42
53
|
## 0.8.2
|
|
43
54
|
|
|
44
55
|
### Bugs fixed
|
|
45
56
|
|
|
46
|
-
* [#203](https://github.com/
|
|
57
|
+
* [#203](https://github.com/prontolabs/pronto/pull/203): fix unintentional class conversion that led to exclude config option not working.
|
|
47
58
|
|
|
48
59
|
## 0.8.1
|
|
49
60
|
|
|
@@ -53,28 +64,28 @@
|
|
|
53
64
|
|
|
54
65
|
### Bugs fixed
|
|
55
66
|
|
|
56
|
-
* [#125](https://github.com/
|
|
67
|
+
* [#125](https://github.com/prontolabs/pronto/issues/125): check whether message has a line before posting to GitLab.
|
|
57
68
|
* Post on commit comments on correct commit: use message.commit_sha to set comment.sha instead of head.
|
|
58
|
-
* [#201](https://github.com/
|
|
69
|
+
* [#201](https://github.com/prontolabs/pronto/issues/201): allow messages without line positions or paths.
|
|
59
70
|
|
|
60
71
|
## 0.8.0
|
|
61
72
|
|
|
62
73
|
### New features
|
|
63
74
|
|
|
64
|
-
* [#199](https://github.com/
|
|
75
|
+
* [#199](https://github.com/prontolabs/pronto/pull/199): add support for Ruby 2.4.0.
|
|
65
76
|
|
|
66
77
|
### Changes
|
|
67
78
|
|
|
68
|
-
* [#181](https://github.com/
|
|
69
|
-
* [#184](https://github.com/
|
|
70
|
-
* [#185](https://github.com/
|
|
79
|
+
* [#181](https://github.com/prontolabs/pronto/pull/181): add ENV variables for all configuration options.
|
|
80
|
+
* [#184](https://github.com/prontolabs/pronto/pull/184): prefix all ENV variables with `PRONTO_`.
|
|
81
|
+
* [#185](https://github.com/prontolabs/pronto/pull/185): allow excluding files to lint for single runner.
|
|
71
82
|
|
|
72
83
|
### Bugs fixed
|
|
73
84
|
|
|
74
|
-
* [#179](https://github.com/
|
|
75
|
-
* [#187](https://github.com/
|
|
76
|
-
* [#189](https://github.com/
|
|
77
|
-
* [#195](https://github.com/
|
|
85
|
+
* [#179](https://github.com/prontolabs/pronto/pull/179): correctly select branch name for fix Bitbucket pull request formatter.
|
|
86
|
+
* [#187](https://github.com/prontolabs/pronto/pull/187): correctly handle nil/false with consolidate_comments config option.
|
|
87
|
+
* [#189](https://github.com/prontolabs/pronto/pull/189): do not post anything when all consolidated comments already exist.
|
|
88
|
+
* [#195](https://github.com/prontolabs/pronto/pull/195): fix warning for default formatters value.
|
|
78
89
|
|
|
79
90
|
## 0.7.1
|
|
80
91
|
|
|
@@ -84,47 +95,47 @@
|
|
|
84
95
|
|
|
85
96
|
### Bugs fixed
|
|
86
97
|
|
|
87
|
-
* [#149](https://github.com/
|
|
98
|
+
* [#149](https://github.com/prontolabs/pronto/issues/149): use patches to correctly find line position for GitHub pull request formatter.
|
|
88
99
|
|
|
89
100
|
## 0.7.0
|
|
90
101
|
|
|
91
102
|
### New features
|
|
92
103
|
|
|
93
|
-
* [#135](https://github.com/
|
|
94
|
-
* [#135](https://github.com/
|
|
95
|
-
* [#134](https://github.com/
|
|
96
|
-
* [#144](https://github.com/
|
|
97
|
-
* [#157](https://github.com/
|
|
98
|
-
* [#154](https://github.com/
|
|
104
|
+
* [#135](https://github.com/prontolabs/pronto/pull/135): add Bitbucket formatter.
|
|
105
|
+
* [#135](https://github.com/prontolabs/pronto/pull/135): add Bitbucket pull request formatter.
|
|
106
|
+
* [#134](https://github.com/prontolabs/pronto/pull/134): colorize text formatter.
|
|
107
|
+
* [#144](https://github.com/prontolabs/pronto/pull/144): add GitHub status formatter.
|
|
108
|
+
* [#157](https://github.com/prontolabs/pronto/pull/157): ability to run pronto CLI from within subdirectories of a git repository.
|
|
109
|
+
* [#154](https://github.com/prontolabs/pronto/pull/154): add an option to consolidate pull request comments.
|
|
99
110
|
|
|
100
111
|
### Changes
|
|
101
112
|
|
|
102
|
-
* [#162](https://github.com/
|
|
113
|
+
* [#162](https://github.com/prontolabs/pronto/pull/162): don't count info messages for error exit code.
|
|
103
114
|
|
|
104
115
|
### Bugs fixed
|
|
105
116
|
|
|
106
|
-
* [#153](https://github.com/
|
|
117
|
+
* [#153](https://github.com/prontolabs/pronto/pull/153): correctly get repo_path.
|
|
107
118
|
|
|
108
119
|
## 0.6.0
|
|
109
120
|
|
|
110
121
|
### New features
|
|
111
122
|
|
|
112
123
|
* Add `-V/--verbose-version` option that displays Ruby version.
|
|
113
|
-
* [#127](https://github.com/
|
|
114
|
-
* [#18](https://github.com/
|
|
115
|
-
* [#83](https://github.com/
|
|
124
|
+
* [#127](https://github.com/prontolabs/pronto/pull/127): ability to specify `max_warnings` via configuration or environment variable.
|
|
125
|
+
* [#18](https://github.com/prontolabs/pronto/issues/18): ability to specify `verbose` via configuration, which can provide more output for debugging purposes.
|
|
126
|
+
* [#83](https://github.com/prontolabs/pronto/issues/83): support multiple formatters as an option to `pronto run`.
|
|
116
127
|
|
|
117
128
|
### Changes
|
|
118
129
|
|
|
119
130
|
* `--version` only displays the version itself without any additional text.
|
|
120
131
|
* Replace `Pronto.gem_names` with `Pronto::GemNames.new.to_a`.
|
|
121
|
-
* [#116](https://github.com/
|
|
122
|
-
* [#123](https://github.com/
|
|
132
|
+
* [#116](https://github.com/prontolabs/pronto/pull/116): improve GitHub formatter error output.
|
|
133
|
+
* [#123](https://github.com/prontolabs/pronto/pull/126): add runner attribute to message initialization.
|
|
123
134
|
* Runner expects to receive patches/commit via `initialize(patches, commit)`, instead of `run(patches, commit)`.
|
|
124
135
|
|
|
125
136
|
### Bugs fixed
|
|
126
137
|
|
|
127
|
-
* [#122](https://github.com/
|
|
138
|
+
* [#122](https://github.com/prontolabs/pronto/pull/122): ignore symlink directories.
|
|
128
139
|
|
|
129
140
|
## 0.5.3
|
|
130
141
|
|
|
@@ -148,25 +159,25 @@
|
|
|
148
159
|
|
|
149
160
|
### New features
|
|
150
161
|
|
|
151
|
-
* [#104](https://github.com/
|
|
152
|
-
* [#86](https://github.com/
|
|
153
|
-
* [#77](https://github.com/
|
|
154
|
-
* [#108](https://github.com/
|
|
162
|
+
* [#104](https://github.com/prontolabs/pronto/pull/104): configure via .pronto.yml file.
|
|
163
|
+
* [#86](https://github.com/prontolabs/pronto/pull/86): ability to specify GitHub slug via configuration or environment variable.
|
|
164
|
+
* [#77](https://github.com/prontolabs/pronto/pull/77): ability to specify GitHub endpoints via configuration or environment variable.
|
|
165
|
+
* [#108](https://github.com/prontolabs/pronto/pull/108): ability to specify excluded files via configuration.
|
|
155
166
|
|
|
156
167
|
### Changes
|
|
157
168
|
|
|
158
|
-
* [#82](https://github.com/
|
|
159
|
-
* [#107](https://github.com/
|
|
169
|
+
* [#82](https://github.com/prontolabs/pronto/pull/82): treat Rake files as Ruby files.
|
|
170
|
+
* [#107](https://github.com/prontolabs/pronto/pull/107): use desc: instead of banner: for CLI options descriptions.
|
|
160
171
|
|
|
161
172
|
### Bugs fixed
|
|
162
173
|
|
|
163
|
-
* [#87](https://github.com/
|
|
164
|
-
* [#91](https://github.com/
|
|
165
|
-
* [#92](https://github.com/
|
|
166
|
-
* [#93](https://github.com/
|
|
167
|
-
* [#94](https://github.com/
|
|
168
|
-
* [poper#4](https://github.com/
|
|
169
|
-
* [#101](https://github.com/
|
|
174
|
+
* [#87](https://github.com/prontolabs/pronto/pull/87): handle github remote urls without .git suffix.
|
|
175
|
+
* [#91](https://github.com/prontolabs/pronto/pull/91): find position in full diff and fix how commit id is used in GithubPullRequestFormatter.
|
|
176
|
+
* [#92](https://github.com/prontolabs/pronto/pull/92): ignore failed pull request comments.
|
|
177
|
+
* [#93](https://github.com/prontolabs/pronto/pull/93): comments didn't have position when outdated.
|
|
178
|
+
* [#94](https://github.com/prontolabs/pronto/pull/94): duplicate comment detection was failing for large GitHub pull requests.
|
|
179
|
+
* [poper#4](https://github.com/prontolabs/pronto-poper/issues/4): handle message uniqueness when they're without line numbers.
|
|
180
|
+
* [#101](https://github.com/prontolabs/pronto/pull/101): make GitLab work with ssh port urls.
|
|
170
181
|
|
|
171
182
|
## 0.4.3
|
|
172
183
|
|
|
@@ -184,16 +195,16 @@
|
|
|
184
195
|
|
|
185
196
|
### Bugs fixed
|
|
186
197
|
|
|
187
|
-
* [#58](https://github.com/
|
|
198
|
+
* [#58](https://github.com/prontolabs/pronto/pull/58): GitlabFormatter uses a high +per_page+ value to avoid pagination (and thus duplicate comments).
|
|
188
199
|
|
|
189
200
|
## 0.4.0
|
|
190
201
|
|
|
191
202
|
### New features
|
|
192
203
|
|
|
193
204
|
* Try to detect pull request id automatically, if `PULL_REQUEST_ID` is not specified. Inspired by @willnet/prid.
|
|
194
|
-
* [#40](https://github.com/
|
|
195
|
-
* [#50](https://github.com/
|
|
196
|
-
* [#52](https://github.com/
|
|
205
|
+
* [#40](https://github.com/prontolabs/pronto/issues/40): add '--index' option for 'pronto run'. Pronto analyzes changes before committing.
|
|
206
|
+
* [#50](https://github.com/prontolabs/pronto/pull/50): add GitLab formatter
|
|
207
|
+
* [#52](https://github.com/prontolabs/pronto/pull/52): allow specifying a path for 'pronto run'.
|
|
197
208
|
|
|
198
209
|
### Changes
|
|
199
210
|
|
|
@@ -221,11 +232,11 @@
|
|
|
221
232
|
|
|
222
233
|
### New features
|
|
223
234
|
|
|
224
|
-
* [#27](https://github.com/
|
|
225
|
-
* [#16](https://github.com/
|
|
235
|
+
* [#27](https://github.com/prontolabs/pronto/issues/27): '--exit-code' option for 'pronto run'. Pronto exits with non-zero code if there were any warnings/errors.
|
|
236
|
+
* [#16](https://github.com/prontolabs/pronto/issues/16): new formatter: GithubPullRequestFormatter. Writes review comments on GitHub pull requests.
|
|
226
237
|
|
|
227
238
|
### Changes
|
|
228
239
|
|
|
229
|
-
* [#29](https://github.com/
|
|
240
|
+
* [#29](https://github.com/prontolabs/pronto/issues/29): be compatible and depend on rugged '0.21.0'.
|
|
230
241
|
* Performance improvement: use Rugged::Blame instead of one provided by Grit.
|
|
231
242
|
* Performance improvement: cache comments retrieved from GitHub.
|
data/CONTRIBUTING.md
CHANGED
|
@@ -27,7 +27,7 @@ do so.
|
|
|
27
27
|
* Open a [pull request][4] that relates to *only* one subject with a clear title
|
|
28
28
|
and description in grammatically correct, complete sentences.
|
|
29
29
|
|
|
30
|
-
[1]: https://github.com/
|
|
30
|
+
[1]: https://github.com/prontolabs/pronto/issues
|
|
31
31
|
[2]: http://gun.io/blog/how-to-github-fork-branch-and-pull-request
|
|
32
32
|
[3]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
|
33
33
|
[4]: https://help.github.com/articles/using-pull-requests
|
data/README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
# Pronto
|
|
2
2
|
|
|
3
|
-
[](http://travis-ci.org/prontolabs/pronto)
|
|
4
|
+
[](https://codeclimate.com/github/prontolabs/pronto)
|
|
5
|
+
[](https://codeclimate.com/github/prontolabs/pronto)
|
|
6
6
|
[](http://badge.fury.io/rb/pronto)
|
|
7
|
-
[](https://gemnasium.com/prontolabs/pronto)
|
|
8
|
+
[](http://inch-ci.org/github/prontolabs/pronto)
|
|
9
9
|
|
|
10
10
|
**Pronto** runs analysis quickly by checking only the relevant changes. Created to
|
|
11
11
|
be used on [GitHub pull requests](#github-integration), but also works [locally](#local-changes) and integrates with [GitLab](#gitlab-integration) and [Bitbucket](#bitbucket-integration).
|
|
12
12
|
Perfect if you want to find out quickly if a branch introduces changes that conform
|
|
13
|
-
to your [styleguide](https://github.com/
|
|
13
|
+
to your [styleguide](https://github.com/prontolabs/pronto-rubocop), [are DRY](https://github.com/prontolabs/pronto-flay), [don't introduce security holes](https://github.com/prontolabs/pronto-brakeman) and [more](#runners).
|
|
14
14
|
|
|
15
15
|

|
|
16
16
|
|
|
17
|
-
_This README might be ahead of the latest release. Find the README for v0.9.2 [here](https://github.com/
|
|
17
|
+
_This README might be ahead of the latest release. Find the README for v0.9.2 [here](https://github.com/prontolabs/pronto/blob/v0.9.2/README.md)._
|
|
18
18
|
|
|
19
19
|
* [Installation](#installation)
|
|
20
20
|
* [Usage](#usage)
|
|
@@ -198,7 +198,7 @@ eslint:
|
|
|
198
198
|
exclude:
|
|
199
199
|
- 'app/assets/**/*'
|
|
200
200
|
github:
|
|
201
|
-
slug:
|
|
201
|
+
slug: prontolabs/pronto
|
|
202
202
|
access_token: B26354
|
|
203
203
|
api_endpoint: https://api.github.com/
|
|
204
204
|
web_endpoint: https://github.com/
|
|
@@ -207,7 +207,7 @@ gitlab:
|
|
|
207
207
|
api_private_token: 46751
|
|
208
208
|
api_endpoint: https://api.vinted.com/gitlab
|
|
209
209
|
bitbucket:
|
|
210
|
-
slug:
|
|
210
|
+
slug: prontolabs/pronto
|
|
211
211
|
username: user
|
|
212
212
|
password: pass
|
|
213
213
|
web_endpoint: https://bitbucket.org/
|
|
@@ -262,39 +262,42 @@ The following values are available only to the text formatter:
|
|
|
262
262
|
Pronto can run various tools and libraries, as long as there's a runner for it.
|
|
263
263
|
Currently available:
|
|
264
264
|
|
|
265
|
-
* [pronto-brakeman](https://github.com/
|
|
265
|
+
* [pronto-brakeman](https://github.com/prontolabs/pronto-brakeman)
|
|
266
266
|
* [pronto-coffeelint](https://github.com/siebertm/pronto-coffeelint)
|
|
267
267
|
* [pronto-clippy](https://github.com/hauleth/pronto-clippy)
|
|
268
268
|
* [pronto-credo](https://github.com/carakan/pronto-credo)
|
|
269
269
|
* [pronto-dialyzer](https://github.com/iurifq/pronto-dialyzer)
|
|
270
|
+
* [pronto-dirty_words](https://github.com/kevinjalbert/pronto-dirty_words)
|
|
270
271
|
* [pronto-dogma](https://github.com/iurifq/pronto-dogma)
|
|
271
|
-
* [pronto-eslint](https://github.com/
|
|
272
|
+
* [pronto-eslint](https://github.com/prontolabs/pronto-eslint) (uses [eslintrb](https://github.com/zendesk/eslintrb))
|
|
272
273
|
* [pronto-eslint_npm](https://github.com/doits/pronto-eslint_npm) (uses eslint installed from npm)
|
|
273
|
-
* [pronto-fasterer](https://github.com/
|
|
274
|
-
* [pronto-flay](https://github.com/
|
|
275
|
-
* [pronto-
|
|
276
|
-
* [pronto-
|
|
274
|
+
* [pronto-fasterer](https://github.com/prontolabs/pronto-fasterer)
|
|
275
|
+
* [pronto-flay](https://github.com/prontolabs/pronto-flay)
|
|
276
|
+
* [pronto-flow](https://github.com/kevinjalbert/pronto-flow)
|
|
277
|
+
* [pronto-foodcritic](https://github.com/prontolabs/pronto-foodcritic)
|
|
278
|
+
* [pronto-haml](https://github.com/prontolabs/pronto-haml)
|
|
277
279
|
* [pronto-jscs](https://github.com/spajus/pronto-jscs)
|
|
278
|
-
* [pronto-jshint](https://github.com/
|
|
280
|
+
* [pronto-jshint](https://github.com/prontolabs/pronto-jshint)
|
|
279
281
|
* [pronto-json](https://github.com/deees/pronto-json)
|
|
280
282
|
* [pronto-luacheck](https://github.com/seikichi/pronto-luacheck)
|
|
281
283
|
* [pronto-perl_lint](https://github.com/bells17/pronto-perl_lint)
|
|
282
284
|
* [pronto-phpcs](https://github.com/EllisV/pronto-phpcs)
|
|
283
285
|
* [pronto-phpmd](https://github.com/EllisV/pronto-phpmd)
|
|
284
|
-
* [pronto-poper](https://github.com/
|
|
285
|
-
* [pronto-rails_best_practices](https://github.com/
|
|
286
|
+
* [pronto-poper](https://github.com/prontolabs/pronto-poper)
|
|
287
|
+
* [pronto-rails_best_practices](https://github.com/prontolabs/pronto-rails_best_practices)
|
|
286
288
|
* [pronto-rails_schema](https://github.com/raimondasv/pronto-rails_schema)
|
|
287
|
-
* [pronto-reek](https://github.com/
|
|
288
|
-
* [pronto-rubocop](https://github.com/
|
|
289
|
-
* [pronto-scss](https://github.com/
|
|
289
|
+
* [pronto-reek](https://github.com/prontolabs/pronto-reek)
|
|
290
|
+
* [pronto-rubocop](https://github.com/prontolabs/pronto-rubocop)
|
|
291
|
+
* [pronto-scss](https://github.com/prontolabs/pronto-scss)
|
|
290
292
|
* [pronto-shellcheck](https://github.com/pclalv/pronto-shellcheck)
|
|
291
293
|
* [pronto-slim](https://github.com/nysthee/pronto-slim)
|
|
292
294
|
* [pronto-slim_lint](https://github.com/ibrahima/pronto-slim_lint)
|
|
293
|
-
* [pronto-spell](https://github.com/
|
|
295
|
+
* [pronto-spell](https://github.com/prontolabs/pronto-spell)
|
|
294
296
|
* [pronto-stylelint](https://github.com/kevinjalbert/pronto-stylelint)
|
|
295
297
|
* [pronto-swiftlint](https://github.com/ajanauskas/pronto-swiftlint)
|
|
296
298
|
* [pronto-tailor](https://github.com/ajanauskas/pronto-tailor)
|
|
297
299
|
* [pronto-textlint](https://github.com/seikichi/pronto-textlint)
|
|
300
|
+
* [pronto-tslint_npm](https://github.com/eprislac/pronto-tslint_npm)
|
|
298
301
|
|
|
299
302
|
## Articles
|
|
300
303
|
|
|
@@ -310,6 +313,7 @@ Articles to help you to get started:
|
|
|
310
313
|
* [Running Rubocop before git commit](https://christoph.luppri.ch/articles/2016/11/21/running-rubocop-before-git-commit/)
|
|
311
314
|
* [Pronto, Codeship and GitHub for automatic code review](http://abinoam.tl1n.com/pronto-codeship-and-github-for-automatic-code-review/)
|
|
312
315
|
* [How to automatically review your PRs for style violations with Pronto and RuboCop](https://christoph.luppri.ch/articles/2017/03/05/how-to-automatically-review-your-prs-for-style-violations-with-pronto-and-rubocop/)
|
|
316
|
+
* [Create your own Pronto Runner](https://kevinjalbert.com/create-your-own-pronto-runner/)
|
|
313
317
|
|
|
314
318
|
Make a Pull Request to add something you wrote or found useful.
|
|
315
319
|
|
data/lib/pronto/github.rb
CHANGED
|
@@ -39,6 +39,8 @@ module Pronto
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def create_pull_request_review(comments)
|
|
42
|
+
return if comments.empty?
|
|
43
|
+
|
|
42
44
|
options = {
|
|
43
45
|
event: 'COMMENT',
|
|
44
46
|
accept: 'application/vnd.github.black-cat-preview+json', # https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review
|
|
@@ -90,6 +92,10 @@ module Pronto
|
|
|
90
92
|
pull_requests.find { |pr| pr[:number].to_i == env_pull_id }
|
|
91
93
|
elsif @repo.branch
|
|
92
94
|
pull_requests.find { |pr| pr[:head][:ref] == @repo.branch }
|
|
95
|
+
elsif @repo.head_detached?
|
|
96
|
+
pull_requests.find do |pr|
|
|
97
|
+
pr[:head][:sha] == @repo.head_commit_sha
|
|
98
|
+
end
|
|
93
99
|
end
|
|
94
100
|
end
|
|
95
101
|
|
data/lib/pronto/version.rb
CHANGED
data/pronto.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
|
10
10
|
s.platform = Gem::Platform::RUBY
|
|
11
11
|
s.author = 'Mindaugas Mozūras'
|
|
12
12
|
s.email = 'mindaugas.mozuras@gmail.com'
|
|
13
|
-
s.homepage = 'https://github.com/
|
|
13
|
+
s.homepage = 'https://github.com/prontolabs/pronto'
|
|
14
14
|
s.summary = 'Pronto runs analysis by checking only the introduced changes'
|
|
15
15
|
s.description = <<-EOF
|
|
16
16
|
Pronto runs analysis quickly by checking only the relevant changes. Created
|
|
@@ -53,6 +53,6 @@ Gem::Specification.new do |s|
|
|
|
53
53
|
s.add_development_dependency('bundler', '~> 1.3')
|
|
54
54
|
s.add_development_dependency('simplecov', '~> 0.14')
|
|
55
55
|
s.add_development_dependency('rubocop', '~> 0.47')
|
|
56
|
-
s.add_development_dependency('pronto-rubocop', '~> 0.
|
|
56
|
+
s.add_development_dependency('pronto-rubocop', '~> 0.9.0')
|
|
57
57
|
s.add_development_dependency('codeclimate-test-reporter', '~> 1.0')
|
|
58
58
|
end
|
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.4
|
|
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-
|
|
11
|
+
date: 2017-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rugged
|
|
@@ -222,14 +222,14 @@ dependencies:
|
|
|
222
222
|
requirements:
|
|
223
223
|
- - "~>"
|
|
224
224
|
- !ruby/object:Gem::Version
|
|
225
|
-
version: 0.
|
|
225
|
+
version: 0.9.0
|
|
226
226
|
type: :development
|
|
227
227
|
prerelease: false
|
|
228
228
|
version_requirements: !ruby/object:Gem::Requirement
|
|
229
229
|
requirements:
|
|
230
230
|
- - "~>"
|
|
231
231
|
- !ruby/object:Gem::Version
|
|
232
|
-
version: 0.
|
|
232
|
+
version: 0.9.0
|
|
233
233
|
- !ruby/object:Gem::Dependency
|
|
234
234
|
name: codeclimate-test-reporter
|
|
235
235
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -310,7 +310,7 @@ files:
|
|
|
310
310
|
- lib/pronto/status.rb
|
|
311
311
|
- lib/pronto/version.rb
|
|
312
312
|
- pronto.gemspec
|
|
313
|
-
homepage: https://github.com/
|
|
313
|
+
homepage: https://github.com/prontolabs/pronto
|
|
314
314
|
licenses:
|
|
315
315
|
- MIT
|
|
316
316
|
metadata: {}
|
|
@@ -330,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
330
330
|
version: '0'
|
|
331
331
|
requirements: []
|
|
332
332
|
rubyforge_project:
|
|
333
|
-
rubygems_version: 2.6.
|
|
333
|
+
rubygems_version: 2.6.11
|
|
334
334
|
signing_key:
|
|
335
335
|
specification_version: 4
|
|
336
336
|
summary: Pronto runs analysis by checking only the introduced changes
|