gitarro 0.1.82 → 0.1.83
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/lib/gitarro/backend.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b86f19aa072c0fc665edacfec17e6d83bb2d73abf2f18a905ac22b34087dfc3
|
|
4
|
+
data.tar.gz: 813daa1130b446fb366c82feb9ac3de40f4ad45709ec7601eeccf5b4e1bcf6e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a3e56d40cc0bcaf2dd90927ede914751b3f037e68fc4612363967981c4eddc17bda3add0094a6b4a13c9e0daf6689a072c69b74f146e87a77c364b34a2a6c49
|
|
7
|
+
data.tar.gz: 6148b5ee02c96185871f3588d25d0e7ede02e42d213e4a2a67edcf3a90cb611356b6d4ed48e5eeb8780cfa180565d62b5a80ffc7931c6275c3d8839065a6bb15
|
data/lib/gitarro/backend.rb
CHANGED
|
@@ -244,10 +244,10 @@ class Backend
|
|
|
244
244
|
|
|
245
245
|
# this function will check if the PR contains in comment the magic word
|
|
246
246
|
# # for retrigger all the tests.
|
|
247
|
-
def retriggered_by_comment?(
|
|
247
|
+
def retriggered_by_comment?(pr, context)
|
|
248
248
|
magic_word_trigger = "gitarro rerun #{context} !!!"
|
|
249
249
|
# a pr contain always a comments, cannot be nil
|
|
250
|
-
@client.issue_comments(@repo,
|
|
250
|
+
@client.issue_comments(@repo, pr.number).each do |com|
|
|
251
251
|
# delete comment otherwise it will be retrigger infinetely
|
|
252
252
|
next unless com.body.include? magic_word_trigger
|
|
253
253
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitarro
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.83
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dario Maiocchi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-02-
|
|
11
|
+
date: 2019-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: english
|