lita-reviewme 0.2.0 → 0.3.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
  SHA1:
3
- metadata.gz: 296d9fe4b696d9c8be819c918e3a12956e0011c1
4
- data.tar.gz: 8fc85b368d684949d10d965fb201c37a5cc2442c
3
+ metadata.gz: d51a1ae6c2b58484b339b027e61bf0d669586fd0
4
+ data.tar.gz: a39aa7c4930faa9a5ef5e54850f302b9e1d7dea9
5
5
  SHA512:
6
- metadata.gz: 26d277331b7d6e75a962888f799298a5ff4d94aa5dcab135c014bed979a8fafd0f1c67aa166cae576f21a9e0e60899694b8f8d971e78afd26b1cb62e872a36ab
7
- data.tar.gz: a23072dac424063faa19fbc2f7a796718515fef97b4528199fa4afa1cdd26376bb2d0f6aaa86126848a7f84ca45bbacc6d1738fc6f87d7ac367f34328a035e97
6
+ metadata.gz: 35f184303720903bafccf0feab59ffc59cdc0f4e82ce52627f241792cabcabb195a604c3efaeb2a36b817e9a40def2ae452c7244f3b8d2a9c2c47d641f873a1c
7
+ data.tar.gz: 144e98c975fc7fcb9826f223089544f12151174bed252a1013d0f74cff9b021e8441155fd0c2abaafc750beee243e25df6adea5c552a851a15a2a09cfd4a577a
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.3.0] - 2016-02-03
8
+
9
+ ### Changed
10
+ - Use Lita's handler configuration rather than ENV for GH token.
11
+
7
12
  ## [0.2.0] - 2016-01-29
8
13
 
9
14
  ### Added
@@ -24,7 +29,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
24
29
  ### Added
25
30
  - Start versioning gem.
26
31
 
27
- [Unreleased]: https://github.com/iamvery/lita-reviewme/compare/v0.2.0...HEAD
32
+ [Unreleased]: https://github.com/iamvery/lita-reviewme/compare/v0.3.0...HEAD
33
+ [0.3.0]: https://github.com/iamvery/lita-reviewme/compare/v0.2.0...v0.3.0
28
34
  [0.2.0]: https://github.com/iamvery/lita-reviewme/compare/v0.1.0...v0.2.0
29
35
  [0.1.0]: https://github.com/iamvery/lita-reviewme/compare/v0.0.1...v0.1.0
30
36
  [0.0.1]: https://github.com/iamvery/lita-reviewme/compare/a02548...v0.0.1
data/README.md CHANGED
@@ -17,10 +17,13 @@ gem "lita-reviewme", github: "iamvery/lita-reviewme"
17
17
 
18
18
  ## Configuration
19
19
 
20
- Environment variable needed for Github integration:
20
+ For the Github integration, you must set an access token in your `lita_config.rb`.
21
+ You may use your Github account or create a special account just to leave notification comments.
22
+ Regardless the user must have access to the repo being reviewed, and the token must be allowed to leave comments on pull requests.
21
23
 
22
24
  ```
23
- ENV["GITHUB_WOLFBRAIN_ACCESS_TOKEN"]
25
+ # your bot's lita_config.rb
26
+ config.handlers.reviewme.github_access_token = ENV["GITHUB_ACCESS_TOKEN"]
24
27
  ```
25
28
 
26
29
  ## Usage
@@ -5,6 +5,8 @@ module Lita
5
5
  class Reviewme < Handler
6
6
  REDIS_LIST = "reviewers"
7
7
 
8
+ config :github_access_token
9
+
8
10
  route(
9
11
  /add (.+) to reviews/i,
10
12
  :add_reviewer,
@@ -122,11 +124,7 @@ module Lita
122
124
  end
123
125
 
124
126
  def github_client
125
- @github_client ||= Octokit::Client.new(access_token: github_access_token)
126
- end
127
-
128
- def github_access_token
129
- ENV['GITHUB_WOLFBRAIN_ACCESS_TOKEN']
127
+ @github_client ||= Octokit::Client.new(access_token: config.github_access_token)
130
128
  end
131
129
 
132
130
  def chat_mention(reviewer, url)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-reviewme"
3
- spec.version = "0.2.0"
3
+ spec.version = "0.3.0"
4
4
  spec.authors = ["Jay Hayes"]
5
5
  spec.email = ["ur@iamvery.com"]
6
6
  spec.description = %q{A lita handler that helps with code review}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-reviewme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Hayes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-29 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -142,3 +142,4 @@ summary: A lita handler that helps with code review
142
142
  test_files:
143
143
  - spec/lita/handlers/reviewme_spec.rb
144
144
  - spec/spec_helper.rb
145
+ has_rdoc: