dependabot-common 0.100.1 → 0.100.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/lib/dependabot/pull_request_updater/github.rb +8 -3
- data/lib/dependabot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19f528927c1884d55705973ba5851b44d3692d294c2646a6ebc671737a203695
|
|
4
|
+
data.tar.gz: cd103f0c2749f2db3b4fe72df0741463aa71596ab0544a11311a620fa31a0962
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3ffc6d13ca64370b4ce74bc7780b52a6f49d36c9cad6393a5ef0f9fbd78273a6bbde9849d18b235171cf57e5b80797070bb22c88708e71c3eecb7f5c848e03a
|
|
7
|
+
data.tar.gz: 879e032677c7dac79541de121f62475644ee680d90459ef222aa7bbf71718962595034f0dc02df74cf8b9e6295957312cfc6f2b16ba39ed61c6471f10c3b4b2b
|
|
@@ -43,6 +43,11 @@ module Dependabot
|
|
|
43
43
|
pull_request_number,
|
|
44
44
|
base: target_branch
|
|
45
45
|
)
|
|
46
|
+
rescue Octokit::UnprocessableEntity => e
|
|
47
|
+
# Return quietly if the PR has been closed
|
|
48
|
+
return nil if e.message.match?(/closed pull request/i)
|
|
49
|
+
|
|
50
|
+
raise
|
|
46
51
|
end
|
|
47
52
|
|
|
48
53
|
def github_client_for_source
|
|
@@ -133,12 +138,12 @@ module Dependabot
|
|
|
133
138
|
commit.sha,
|
|
134
139
|
true
|
|
135
140
|
)
|
|
136
|
-
rescue Octokit::UnprocessableEntity =>
|
|
141
|
+
rescue Octokit::UnprocessableEntity => e
|
|
137
142
|
# Return quietly if the branch has been deleted
|
|
138
|
-
return nil if
|
|
143
|
+
return nil if e.message.match?(/Reference does not exist/i)
|
|
139
144
|
|
|
140
145
|
# Return quietly if the branch has been merged
|
|
141
|
-
return nil if
|
|
146
|
+
return nil if e.message.match?(/Reference cannot be updated/i)
|
|
142
147
|
|
|
143
148
|
raise
|
|
144
149
|
end
|
data/lib/dependabot/version.rb
CHANGED