hubstats 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGRjOTM1NDdmYzA1ZDUyMmYyZGZjZTY4ODYwMWE5NmVkYjNkMjY5ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGIwNzhmYTk3YzlkZGNmYTllNjk3ZjQ2NzM1NTgzMzc2NzFiM2ZkOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2I4MGYyMGU1N2Y4YmUzM2VjMjBhNGNlMzA1Mzg5MTE2M2UyMGNjYTY3Njlj
|
10
|
+
MmNhZjc1YzEzZGU5MWEwZDI2MDJiZWY1YmNhZWM2YTk5OGZlZTE4YTQyNDIx
|
11
|
+
ZWFlNTM0NDVjMzM0NjA0ZDQxMWZiMmYzYjYzOTlkZWNiODkwMWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWIyYWVmYTllZGUwZDg1MDYwMmRlY2JhODM0Mzk2NTU5NmJjYzJkMTBmZDg0
|
14
|
+
MTE0NDkxM2EzYmU1YWQ5YzkyNDUyZGI5ODk0YTkwZDQ4YjIyOGI5YThlNzlm
|
15
|
+
ODU4ZTk4ZGZiODY0ZTg5Yjg4MGU3MDcwOTQ2NzI3NzVjYjgwMmM=
|
data/app/models/hubstats/user.rb
CHANGED
@@ -62,6 +62,7 @@ module Hubstats
|
|
62
62
|
has_many :pull_requests
|
63
63
|
|
64
64
|
def self.create_or_update(github_user)
|
65
|
+
logger.warn github_user.inspect
|
65
66
|
github_user[:role] = github_user.delete :type ##changing :type in to :role
|
66
67
|
github_user = github_user.to_h unless github_user.is_a? Hash
|
67
68
|
|
@@ -27,8 +27,7 @@ module Hubstats
|
|
27
27
|
comment[:repo_id] = payload[:repository][:id]
|
28
28
|
comment[:pull_number] = get_pull_number(payload)
|
29
29
|
|
30
|
-
|
31
|
-
puts comment.inspect
|
30
|
+
logger.warn comment.inspect
|
32
31
|
Hubstats::Comment.create_or_update(comment)
|
33
32
|
end
|
34
33
|
|
data/lib/hubstats/version.rb
CHANGED