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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e0cdb6d0ea731019023c33f2a0e6896aa558ff84eafc2a1fdae9547b8865f90
4
- data.tar.gz: 5e1797d1ffab25d7501a9ab15a2f7ac1ae03a52664e472beecc18f27fae1f307
3
+ metadata.gz: ed9b0b0e2821b581f67b8a01188cd52dcd4c61df9c52c8aead49b31ef3a308bf
4
+ data.tar.gz: a8a515670defc56c3783d1664cd800f6666c58bee95857c5410ef17f5daad521
5
5
  SHA512:
6
- metadata.gz: 6d6ee5b15f1a9da9fea75ba516d8f238e6119a0e03fc72998206f012cf536760858f7bca294832e1689eaa6053afba922209b046aa48a3f8c31d6df1bf463156
7
- data.tar.gz: 8d6fadd5de8798e92781db62657dcbede972266d7d7ad64fcea86930cff660e0b6018ad1cb647ee009056a935df37ce662469590760f38689c8ed46624bc6da7
6
+ metadata.gz: b3588a318caa6750522714f552c1657e04b8c8b6bc96dde64819c284a691eb0ea1d03262a8986cbadd358f83c2174d5b07347e15255b87649148436999f66a55
7
+ data.tar.gz: d9796bd8369db7d1e2c61da378a4dc4899a040ff296c1f12699457013e45c9c2b3a3928c870106580d34680eb37c1c54ccf1fc6ffec4deef5f4706ae5f9e4eca
@@ -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
- unless @request.from_fork
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)
@@ -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.0.0
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: 2018-05-07 00:00:00.000000000 Z
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
- rubyforge_project:
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