all-contributors-cli
Advanced tools
Comparing version 2.0.0-beta1 to 2.0.0-beta2
@@ -9,3 +9,3 @@ import test from 'ava'; | ||
avatar_url: 'www.avatar.url', | ||
html_url: 'www.html.url' | ||
profile: 'www.profile.url' | ||
}); | ||
@@ -20,3 +20,3 @@ } | ||
avatar_url: 'www.avatar.url', | ||
html_url: 'www.html.url', | ||
profile: 'www.profile.url', | ||
contributions: [ | ||
@@ -29,3 +29,3 @@ 'code' | ||
avatar_url: 'www.avatar.url', | ||
html_url: 'www.html.url', | ||
profile: 'www.profile.url', | ||
contributions: [ | ||
@@ -66,3 +66,3 @@ { type: 'blog', url: 'www.blog.url/path' }, | ||
avatar_url: 'www.avatar.url', | ||
html_url: 'www.html.url', | ||
profile: 'www.profile.url', | ||
contributions: [ | ||
@@ -89,3 +89,3 @@ 'doc' | ||
avatar_url: 'www.avatar.url', | ||
html_url: 'www.html.url', | ||
profile: 'www.profile.url', | ||
contributions: [ | ||
@@ -123,3 +123,3 @@ { type: 'doc', url: 'www.foo.bar' } | ||
avatar_url: 'www.avatar.url', | ||
html_url: 'www.html.url', | ||
profile: 'www.profile.url', | ||
contributions: [ | ||
@@ -147,3 +147,3 @@ 'code', | ||
avatar_url: 'www.avatar.url', | ||
html_url: 'www.html.url', | ||
profile: 'www.profile.url', | ||
contributions: [ | ||
@@ -150,0 +150,0 @@ 'code', |
@@ -16,5 +16,11 @@ 'use strict'; | ||
} | ||
var user = JSON.parse(res.body); | ||
return cb(null, _.pick(['login', 'name', 'avatar_url', 'html_url'], user)); | ||
var body = JSON.parse(res.body); | ||
var user = { | ||
login: body.login, | ||
name: body.name, | ||
avatar_url: body.avatar_url, | ||
profile: body.blog || body.html_url | ||
}; | ||
return cb(null, user); | ||
}); | ||
} |
@@ -5,3 +5,3 @@ { | ||
"name": "Kent C. Dodds", | ||
"html_url": "http://kentcdodds.com", | ||
"profile": "http://kentcdodds.com", | ||
"avatar_url": "https://avatars1.githubusercontent.com/u/1500684", | ||
@@ -17,3 +17,3 @@ "contributions": [ | ||
"name": "Divjot Singh", | ||
"html_url": "http://bogas04.github.io", | ||
"profile": "http://bogas04.github.io", | ||
"avatar_url": "https://avatars1.githubusercontent.com/u/6177621", | ||
@@ -20,0 +20,0 @@ "contributions": [ |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var avatarTemplate = _.template('![<%= contributor.name %>](<%= contributor.avatar_url %>)'); | ||
var avatarBlockTemplate = _.template('[<%= avatar %><br /><sub><%= contributor.name %></sub>](<%= contributor.html_url %>)'); | ||
var avatarBlockTemplate = _.template('[<%= avatar %><br /><sub><%= contributor.name %></sub>](<%= contributor.profile %>)'); | ||
var contributorTemplate = _.template('<%= avatarBlock %><br /><%= contributions %>'); | ||
@@ -11,0 +11,0 @@ |
{ | ||
"name": "all-contributors-cli", | ||
"version": "2.0.0-beta1", | ||
"version": "2.0.0-beta2", | ||
"description": "Tool to easily add recognition for new contributors", | ||
@@ -5,0 +5,0 @@ "bin": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33761
819
0