prophet 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prophet/prophet.rb +2 -1
- data/lib/prophet/pull_request.rb +3 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed9b0b0e2821b581f67b8a01188cd52dcd4c61df9c52c8aead49b31ef3a308bf
|
4
|
+
data.tar.gz: a8a515670defc56c3783d1664cd800f6666c58bee95857c5410ef17f5daad521
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3588a318caa6750522714f552c1657e04b8c8b6bc96dde64819c284a691eb0ea1d03262a8986cbadd358f83c2174d5b07347e15255b87649148436999f66a55
|
7
|
+
data.tar.gz: d9796bd8369db7d1e2c61da378a4dc4899a040ff296c1f12699457013e45c9c2b3a3928c870106580d34680eb37c1c54ccf1fc6ffec4deef5f4706ae5f9e4eca
|
data/lib/prophet/prophet.rb
CHANGED
@@ -167,7 +167,8 @@ class Prophet
|
|
167
167
|
# - the pull request does not originate from a fork (to avoid malicious code execution on CI machines)
|
168
168
|
def run_necessary?
|
169
169
|
logger.info "Checking pull request ##{@request.id}: #{@request.content.title}"
|
170
|
-
|
170
|
+
|
171
|
+
unless @request.from_fork || @request.wip
|
171
172
|
# Compare current sha ids of target and source branch with those from the last test run.
|
172
173
|
@request.target_head_sha = @github.commits(@project).first.sha
|
173
174
|
comments = @github.issue_comments(@project, @request.id)
|
data/lib/prophet/pull_request.rb
CHANGED
@@ -5,13 +5,15 @@ class PullRequest
|
|
5
5
|
:comment,
|
6
6
|
:head_sha,
|
7
7
|
:target_head_sha,
|
8
|
-
:from_fork
|
8
|
+
:from_fork,
|
9
|
+
:wip
|
9
10
|
|
10
11
|
def initialize(content)
|
11
12
|
@content = content
|
12
13
|
@id = content.number
|
13
14
|
@head_sha = content.head.sha
|
14
15
|
@from_fork = content.head.repo.fork
|
16
|
+
@wip = content.labels.map(&:name).map(&:downcase).include? 'wip'
|
15
17
|
end
|
16
18
|
|
17
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prophet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Bamberger
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2019-10-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday_middleware
|
@@ -88,8 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
|
92
|
-
rubygems_version: 2.7.3
|
91
|
+
rubygems_version: 3.0.6
|
93
92
|
signing_key:
|
94
93
|
specification_version: 4
|
95
94
|
summary: An easy way to loop through open pull requests and run code onthe merged
|