wercker-bundle-update-pr 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: f343168a816e643e6b2c3f342d04275105814303
4
- data.tar.gz: 9e64ff09b58c1f401b99448aa6eb371027fcb86f
3
+ metadata.gz: b007ec1fb6825564006db7fcaad21368b4ee0318
4
+ data.tar.gz: 9b13ab15f577b74175ee221fd5e9114dca07eba7
5
5
  SHA512:
6
- metadata.gz: 573a5d056941830658976115b8c6be8111f28fec9bec7208be673ddc6aa8c40a8b5f96708b500ff539498ec430cf94714e4f811092a7e8ca18caf5ccdf2620c7
7
- data.tar.gz: 15f6b302f1bd30df01c6fa1ed29da5a04f9fd8e6f08f98e6be2664a642155dc57f56aed814038e8a0946c53cc5cfa12594b47da00fb02a3426a15b9ba5e6f68c
6
+ metadata.gz: eb22956f8e0879897f90e286e2f4e9a456742a5c93285ff08c303345fb1489accee58a04f3e6577f2a5befebfe1931b0c41a338de397e0f9414175656e6177e8
7
+ data.tar.gz: 9b12f51a85bc11ce8cbd2a210ae235441c8545b361f680d933761fe6f9b5679a5077c41656147f4ce391963a29f7eb187c77abe629847757cc9599160dfee6c0
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This is an automation script to bundle update and send pull request via Wercker's Trigger Build API. By requesting trigger build to Wercker with an environment variable which instruct wercker.yml to execute this script, bundle update is invoked, then commit changes and send pull request to GitHub repository if there some changes exist.
4
4
 
5
- (Both concept and implementaion are strongly based on [circleci-bundle-update-pr](https://github.com/masutaka/circleci-bundle-update-pr). Thnaks to [masutaka](https://github.com/masutaka))
5
+ (Both concept and implementaion are strongly based on [circleci-bundle-update-pr](https://github.com/masutaka/circleci-bundle-update-pr).
6
6
 
7
7
  ## Installation
8
8
 
@@ -29,34 +29,32 @@ A Wercker personal token is required for invoking Trigger Build API. Go to your
29
29
  In the application's setting page:
30
30
 
31
31
  1. Generate SSH key named "wercker_github_ci_key" in "SSH Keys" for pushing changes to GitHub
32
- 1. Register the above generated key to GitHub SSH keys in Personal settings (note a fingerprint shown along with a key like `41:98:4b:7f:ae:...`)
32
+ 1. Register the above generated key to GitHub SSH keys in Personal settings
33
33
  1. In "Environment variables", add `GITHUB_ACCESS_TOKEN` with a GitHub personal access token (**Make sure you mark it "protected" otherwise it will be shown in logs**)
34
34
  1. In "Environment variables", add `WERCKER_GITHUB_CI_KEY` as SSH key pair and select "wercker_github_ci_key"
35
35
 
36
36
  ### Configure wercker.yml
37
37
 
38
- Add the following 2 steps under `steps` to access GitHub via SSH:
38
+ Add the following 2 steps under `steps` to access GitHub via SSH (Set GitHub's SSH key RSA fingerprint to `<fingerprint>`. See [What are GitHub's SSH key fingerprints?](https://help.github.com/articles/what-are-github-s-ssh-key-fingerprints)):
39
39
 
40
40
  ```yaml
41
41
  - add-ssh-key:
42
42
  keyname: WERCKER_GITHUB_CI_KEY
43
- fingerprint: 15:59:4b:7c:59:d6:a1:00:0e:91:5a:0d:71:73:d8:7d
44
43
 
45
44
  - add-to-known_hosts:
46
45
  hostname: github.com
46
+ fingerprint: <fingerprint>
47
47
  ```
48
48
 
49
- then add this step as well.
49
+ then add this step as well (replace `<username>` and `<email>` with yours).
50
50
 
51
51
  ``` yaml
52
52
  - script:
53
53
  code: |
54
- if [ -z "${BUNDLE_UPDATE}" ] ; then
55
- ls >/dev/null 2>&1
56
- else
54
+ if [ "${BUNDLE_UPDATE}" ] ; then
57
55
  gem update bundler --no-document
58
56
  gem install wercker-bundle-update-pr
59
- wercker-bundle-update-pr 5t111111 baenej@gmail.com
57
+ wercker-bundle-update-pr <username> <email>
60
58
  fi
61
59
  ```
62
60
 
@@ -80,7 +78,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
80
78
 
81
79
  ## Contributing
82
80
 
83
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/wercker-bundle-update-pr. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
81
+ Bug reports and pull requests are welcome on GitHub at https://github.com/5t111111/wercker-bundle-update-pr. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
84
82
 
85
83
 
86
84
  ## License
@@ -59,6 +59,7 @@ module WerckerBundleUpdatePr
59
59
 
60
60
  comment = <<-EOC
61
61
  #{compare_linker.make_compare_links.to_a.join("\n")}
62
+
62
63
  Powered by [compare_linker](https://rubygems.org/gems/compare_linker)
63
64
  EOC
64
65
 
@@ -1,3 +1,3 @@
1
1
  module WerckerBundleUpdatePr
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wercker-bundle-update-pr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hirofumi Wakasugi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit