concourse-github-status 0.5.0 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +0 -0
- data/LICENSE.txt +19 -10
- data/README.org +25 -1
- data/concourse-github-status.gemspec +15 -11
- data/lib/github-status/out.rb +2 -2
- data/lib/github-status/version.rb +6 -1
- data/trust/certificates/colstrom.pem +25 -0
- metadata +32 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e2914d8f2cc2d2a089be65e508ebcaa56add2feb2993bdb196c26897d7c3c109
|
4
|
+
data.tar.gz: 29e8d31e7c14a9cc0cb45ea21a6bea544e4436f01d5649541d90a8aa01d0f00d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f97e52f09ecf1beac259a828d7334459cad4962969ed5fb34c72209ec9a5331fa518206dc47df17c9c5231d246472291f9c1d7f892b7087da0ced34c7c4f0b7
|
7
|
+
data.tar.gz: 9c342fc2db883b7021a3dba95e7b78faa6223728123f92f2e922638b6de545f23777419d2616e9f3c79fbbc89aadfde5466a17cbb5adf2079e44d0d1b6b8ecc2
|
checksums.yaml.gz.sig
ADDED
data.tar.gz.sig
ADDED
Binary file
|
data/LICENSE.txt
CHANGED
@@ -1,13 +1,22 @@
|
|
1
|
-
Copyright 2016 Chris Olstrom <chris@olstrom.com>
|
2
1
|
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
The MIT License (MIT)
|
3
|
+
Copyright © 2016-2018 Chris Olstrom <chris@olstrom.com>
|
4
|
+
Copyright © 2016-2018 SUSE LLC
|
6
5
|
|
7
|
-
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the “Software”), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
8
12
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
data/README.org
CHANGED
@@ -33,6 +33,8 @@ Add the resource to your pipeline's ~resource_types~ (requires Concourse 0.74.0+
|
|
33
33
|
|
34
34
|
*** Parameters
|
35
35
|
|
36
|
+
To set a single status for the current commit of the repository specify these parameters:
|
37
|
+
|
36
38
|
|-------------+----------+-----------+--------------------------------------------|
|
37
39
|
| Name | Required | Default | Description |
|
38
40
|
|-------------+----------+-----------+--------------------------------------------|
|
@@ -42,6 +44,27 @@ Add the resource to your pipeline's ~resource_types~ (requires Concourse 0.74.0+
|
|
42
44
|
| description | No | | A description of the context. |
|
43
45
|
|-------------+----------+-----------+--------------------------------------------|
|
44
46
|
|
47
|
+
It is also possible to set multiple statuses at the same time. This is useful for adding multiple ~pending~ statuses
|
48
|
+
initially which will be updated by later jobs to the corresponding state, for example.
|
49
|
+
This can be done by specifying a ~statuses~ array:
|
50
|
+
|
51
|
+
|-------------+----------+-----------+--------------------------------------------|
|
52
|
+
| Name | Required | Default | Description |
|
53
|
+
|-------------+----------+-----------+--------------------------------------------|
|
54
|
+
| path | Yes | | Relative path to the repository |
|
55
|
+
| statuses | Yes | | Array of status objects |
|
56
|
+
|-------------+----------+-----------+--------------------------------------------|
|
57
|
+
|
58
|
+
Each of the status objects supports the following parameters:
|
59
|
+
|
60
|
+
|-------------+----------+-----------+--------------------------------------------|
|
61
|
+
| Name | Required | Default | Description |
|
62
|
+
|-------------+----------+-----------+--------------------------------------------|
|
63
|
+
| state | Yes | | One of ~pending~, ~success~, or ~failure~ |
|
64
|
+
| context | No | concourse | The ~context~ for the status being updated |
|
65
|
+
| description | No | | A description of the context. |
|
66
|
+
|-------------+----------+-----------+--------------------------------------------|
|
67
|
+
|
45
68
|
** ~check~ Get a list of available statuses
|
46
69
|
|
47
70
|
*** Parameters
|
@@ -64,7 +87,8 @@ Fetches the state of ~context~ for the current commit of the repository at
|
|
64
87
|
|
65
88
|
* License
|
66
89
|
|
67
|
-
|
90
|
+
~concourse-github-status~ is available under the [[https://tldrlegal.com/license/mit-license][MIT License]]. See
|
91
|
+
~LICENSE.txt~ for the full text.
|
68
92
|
|
69
93
|
* Contributors
|
70
94
|
|
@@ -1,21 +1,25 @@
|
|
1
|
-
require_relative 'lib/github-status'
|
2
|
-
|
3
1
|
Gem::Specification.new do |gem|
|
2
|
+
tag = `git describe --tags --abbrev=0`.chomp
|
3
|
+
|
4
4
|
gem.name = 'concourse-github-status'
|
5
|
-
gem.
|
6
|
-
gem.license = 'Apache-2.0'
|
5
|
+
gem.homepage = 'https://github.com/colstrom/concourse-github-status'
|
7
6
|
gem.summary = 'GitHub Status resource for Concourse'
|
8
7
|
|
9
|
-
gem.
|
8
|
+
gem.version = "#{tag}"
|
9
|
+
gem.licenses = ['MIT']
|
10
|
+
gem.authors = ['Chris Olstrom']
|
10
11
|
gem.email = 'chris@olstrom.com'
|
11
|
-
gem.homepage = 'https://github.com/colstrom/concourse-github-status'
|
12
12
|
|
13
|
-
gem.
|
14
|
-
gem.
|
15
|
-
|
13
|
+
gem.cert_chain = ['trust/certificates/colstrom.pem']
|
14
|
+
gem.signing_key = File.expand_path ENV.fetch 'GEM_SIGNING_KEY'
|
15
|
+
|
16
|
+
gem.files = `git ls-files -z`.split("\x0")
|
17
|
+
gem.executables = `git ls-files -z -- bin/*`.split("\x0").map { |f| File.basename(f) }
|
18
|
+
gem.test_files = `git ls-files -z -- {test,spec,features}/*`.split("\x0")
|
19
|
+
|
16
20
|
gem.require_paths = ['lib']
|
17
21
|
|
18
22
|
gem.add_runtime_dependency 'concourse-fuselage', '~> 0.1', '>= 0.1.0'
|
19
|
-
gem.add_runtime_dependency 'git',
|
20
|
-
gem.add_runtime_dependency 'octokit',
|
23
|
+
gem.add_runtime_dependency 'git', '~> 1.3', '>= 1.3.0'
|
24
|
+
gem.add_runtime_dependency 'octokit', '~> 4.2', '>= 4.2.0'
|
21
25
|
end
|
data/lib/github-status/out.rb
CHANGED
@@ -21,9 +21,9 @@ module GitHubStatus
|
|
21
21
|
else
|
22
22
|
statuses.map do |status|
|
23
23
|
options = {
|
24
|
-
context: status["context"],
|
24
|
+
context: status["context"] || "concourse",
|
25
25
|
target_url: target_url,
|
26
|
-
description: status["description"]
|
26
|
+
description: status["description"] || ""
|
27
27
|
}
|
28
28
|
github.create_status repo, sha, status["state"], options
|
29
29
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIENDCCApygAwIBAgIBATANBgkqhkiG9w0BAQsFADAiMSAwHgYDVQQDDBdjaHJp
|
3
|
+
cy9EQz1vbHN0cm9tL0RDPWNvbTAeFw0xODAzMTUxODMxMTdaFw0xOTAzMTUxODMx
|
4
|
+
MTdaMCIxIDAeBgNVBAMMF2NocmlzL0RDPW9sc3Ryb20vREM9Y29tMIIBojANBgkq
|
5
|
+
hkiG9w0BAQEFAAOCAY8AM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TgdClDMJJXXiktVinfsmpTwxe2IzjGvwo2CZ/S53WPU/jb4uQMUzY0tMw48rl
|
21
|
+
S07/1DQNogstTnLYueqkUS1PYEwtavKVnpAtnaOdf0rJ/Rk4hA36BRgAVyQrp0uu
|
22
|
+
mSbo3NCvepJNYsTOUM+Df421VuPq713JV0aJDqltyfPptTM7fmNMcukbRh0aRuMT
|
23
|
+
EIKh6yDoB+oCRuiTV0uw/lKE2PtbONhJb7uN1qhZqla/iBpmUjiEu8+skI+ygv9n
|
24
|
+
7Krw8FJrV3+VRCiZTPKHeshAfL9yeIZh
|
25
|
+
-----END CERTIFICATE-----
|
metadata
CHANGED
@@ -1,14 +1,40 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: concourse-github-status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Olstrom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIENDCCApygAwIBAgIBATANBgkqhkiG9w0BAQsFADAiMSAwHgYDVQQDDBdjaHJp
|
14
|
+
cy9EQz1vbHN0cm9tL0RDPWNvbTAeFw0xODAzMTUxODMxMTdaFw0xOTAzMTUxODMx
|
15
|
+
MTdaMCIxIDAeBgNVBAMMF2NocmlzL0RDPW9sc3Ryb20vREM9Y29tMIIBojANBgkq
|
16
|
+
hkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAp31YmQvpMuQSlgX22B++/rxl4p4LYyaq
|
17
|
+
cDDbi8DBro9cm2H60lbpCuAUALiED2CagZEK0vel5W8AnZhhns0OEYAlpQtBSJtN
|
18
|
+
8P/jlNYruuY26aVhfHfyA5j1n7tVecJz3i/awEPGC3zuTfvUq7Ahn5czOy+hIm4M
|
19
|
+
epee881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aRuMT
|
34
|
+
EIKh6yDoB+oCRuiTV0uw/lKE2PtbONhJb7uN1qhZqla/iBpmUjiEu8+skI+ygv9n
|
35
|
+
7Krw8FJrV3+VRCiZTPKHeshAfL9yeIZh
|
36
|
+
-----END CERTIFICATE-----
|
37
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
12
38
|
dependencies:
|
13
39
|
- !ruby/object:Gem::Dependency
|
14
40
|
name: concourse-fuselage
|
@@ -99,9 +125,10 @@ files:
|
|
99
125
|
- lib/github-status/support/params.rb
|
100
126
|
- lib/github-status/support/source.rb
|
101
127
|
- lib/github-status/version.rb
|
128
|
+
- trust/certificates/colstrom.pem
|
102
129
|
homepage: https://github.com/colstrom/concourse-github-status
|
103
130
|
licenses:
|
104
|
-
-
|
131
|
+
- MIT
|
105
132
|
metadata: {}
|
106
133
|
post_install_message:
|
107
134
|
rdoc_options: []
|
@@ -119,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
146
|
version: '0'
|
120
147
|
requirements: []
|
121
148
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.6
|
149
|
+
rubygems_version: 2.7.6
|
123
150
|
signing_key:
|
124
151
|
specification_version: 4
|
125
152
|
summary: GitHub Status resource for Concourse
|
metadata.gz.sig
ADDED
Binary file
|