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 +4 -4
- data/CHANGELOG.md +7 -1
- data/README.md +5 -2
- data/lib/lita/handlers/reviewme.rb +3 -5
- data/lita-reviewme.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d51a1ae6c2b58484b339b027e61bf0d669586fd0
|
4
|
+
data.tar.gz: a39aa7c4930faa9a5ef5e54850f302b9e1d7dea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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
|
-
|
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)
|
data/lita-reviewme.gemspec
CHANGED
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.
|
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-
|
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:
|