concourse-github-status 0.5.11 → 0.6.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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/github-status/in.rb +1 -1
- data/lib/github-status/out.rb +3 -3
- data/lib/github-status/support/git.rb +5 -1
- data/lib/github-status/support/github.rb +5 -0
- metadata +21 -21
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64aeca991f8af3808bac5ce3deca9ae553f6decd487f80b9f3ab144d9f70c8fe
|
|
4
|
+
data.tar.gz: 0fd4f40389c00971af0dffcbcea968fb2cd56ebcc9826a894f35afbe6afe0fdb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d0e389ac740348feafe687a2dfa9d083fc5bf5fa9394040f376ef2639647c4c2038d86a8ff506c96dce171978e24aec7b29aed114c1bcd5ce1cdfc6a5b7f01a
|
|
7
|
+
data.tar.gz: 19254de67d11802ec6c06073ebfc53b95aa12a0ed1853070c3178c37af1c2c805f55d1c5270c8e9ad1182e1ac9bf0337559aeb8b264608c742b1bcc09d655f0c
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/github-status/in.rb
CHANGED
data/lib/github-status/out.rb
CHANGED
|
@@ -17,7 +17,7 @@ module GitHubStatus
|
|
|
17
17
|
Contract None => Or[Sawyer::Resource, ArrayOf[Sawyer::Resource]]
|
|
18
18
|
def update!
|
|
19
19
|
if statuses.empty?
|
|
20
|
-
github.create_status repo,
|
|
20
|
+
github.create_status repo, canonical_sha, state, options
|
|
21
21
|
else
|
|
22
22
|
statuses.map do |status|
|
|
23
23
|
options = {
|
|
@@ -25,7 +25,7 @@ module GitHubStatus
|
|
|
25
25
|
target_url: target_url,
|
|
26
26
|
description: status["description"] || ""
|
|
27
27
|
}
|
|
28
|
-
github.create_status repo,
|
|
28
|
+
github.create_status repo, canonical_sha, status["state"], options
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
rescue Octokit::Error => error
|
|
@@ -35,7 +35,7 @@ module GitHubStatus
|
|
|
35
35
|
|
|
36
36
|
Contract None => HashOf[String, String]
|
|
37
37
|
def version
|
|
38
|
-
{ 'context@sha' => "#{context}@#{
|
|
38
|
+
{ 'context@sha' => "#{context}@#{canonical_sha}" }
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
Contract None => String
|
|
@@ -12,6 +12,11 @@ module GitHubStatus
|
|
|
12
12
|
def github
|
|
13
13
|
@github ||= Octokit::Client.new access_token: access_token
|
|
14
14
|
end
|
|
15
|
+
|
|
16
|
+
Contract None => String
|
|
17
|
+
def canonical_sha
|
|
18
|
+
@canonical_sha ||= (sha.match(/^.{40}$/) || github.commit(repo, sha).sha).to_s
|
|
19
|
+
end
|
|
15
20
|
end
|
|
16
21
|
end
|
|
17
22
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: concourse-github-status
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Olstrom
|
|
@@ -34,68 +34,68 @@ cert_chain:
|
|
|
34
34
|
EIKh6yDoB+oCRuiTV0uw/lKE2PtbONhJb7uN1qhZqla/iBpmUjiEu8+skI+ygv9n
|
|
35
35
|
7Krw8FJrV3+VRCiZTPKHeshAfL9yeIZh
|
|
36
36
|
-----END CERTIFICATE-----
|
|
37
|
-
date: 2018-
|
|
37
|
+
date: 2018-12-07 00:00:00.000000000 Z
|
|
38
38
|
dependencies:
|
|
39
39
|
- !ruby/object:Gem::Dependency
|
|
40
40
|
name: concourse-fuselage
|
|
41
41
|
requirement: !ruby/object:Gem::Requirement
|
|
42
42
|
requirements:
|
|
43
|
-
- - "~>"
|
|
44
|
-
- !ruby/object:Gem::Version
|
|
45
|
-
version: '0.1'
|
|
46
43
|
- - ">="
|
|
47
44
|
- !ruby/object:Gem::Version
|
|
48
45
|
version: 0.1.0
|
|
46
|
+
- - "~>"
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: '0.1'
|
|
49
49
|
type: :runtime
|
|
50
50
|
prerelease: false
|
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements:
|
|
53
|
-
- - "~>"
|
|
54
|
-
- !ruby/object:Gem::Version
|
|
55
|
-
version: '0.1'
|
|
56
53
|
- - ">="
|
|
57
54
|
- !ruby/object:Gem::Version
|
|
58
55
|
version: 0.1.0
|
|
56
|
+
- - "~>"
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: '0.1'
|
|
59
59
|
- !ruby/object:Gem::Dependency
|
|
60
60
|
name: git
|
|
61
61
|
requirement: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
|
63
|
-
- - "~>"
|
|
64
|
-
- !ruby/object:Gem::Version
|
|
65
|
-
version: '1.3'
|
|
66
63
|
- - ">="
|
|
67
64
|
- !ruby/object:Gem::Version
|
|
68
65
|
version: 1.3.0
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '1.3'
|
|
69
69
|
type: :runtime
|
|
70
70
|
prerelease: false
|
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '1.3'
|
|
76
73
|
- - ">="
|
|
77
74
|
- !ruby/object:Gem::Version
|
|
78
75
|
version: 1.3.0
|
|
76
|
+
- - "~>"
|
|
77
|
+
- !ruby/object:Gem::Version
|
|
78
|
+
version: '1.3'
|
|
79
79
|
- !ruby/object:Gem::Dependency
|
|
80
80
|
name: octokit
|
|
81
81
|
requirement: !ruby/object:Gem::Requirement
|
|
82
82
|
requirements:
|
|
83
|
-
- - "~>"
|
|
84
|
-
- !ruby/object:Gem::Version
|
|
85
|
-
version: '4.2'
|
|
86
83
|
- - ">="
|
|
87
84
|
- !ruby/object:Gem::Version
|
|
88
85
|
version: 4.2.0
|
|
86
|
+
- - "~>"
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '4.2'
|
|
89
89
|
type: :runtime
|
|
90
90
|
prerelease: false
|
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
|
93
|
-
- - "~>"
|
|
94
|
-
- !ruby/object:Gem::Version
|
|
95
|
-
version: '4.2'
|
|
96
93
|
- - ">="
|
|
97
94
|
- !ruby/object:Gem::Version
|
|
98
95
|
version: 4.2.0
|
|
96
|
+
- - "~>"
|
|
97
|
+
- !ruby/object:Gem::Version
|
|
98
|
+
version: '4.2'
|
|
99
99
|
description:
|
|
100
100
|
email: chris@olstrom.com
|
|
101
101
|
executables:
|
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
146
146
|
version: '0'
|
|
147
147
|
requirements: []
|
|
148
148
|
rubyforge_project:
|
|
149
|
-
rubygems_version: 2.7.
|
|
149
|
+
rubygems_version: 2.7.8
|
|
150
150
|
signing_key:
|
|
151
151
|
specification_version: 4
|
|
152
152
|
summary: GitHub Status resource for Concourse
|
metadata.gz.sig
CHANGED
|
Binary file
|