zregvart commented on a change in pull request #272:  Pull contributor data 
from JSON APIs
URL: https://github.com/apache/camel-website/pull/272#discussion_r400441206
 
 

 ##########
 File path: layouts/shortcodes/contributors.html
 ##########
 @@ -0,0 +1,32 @@
+{{ $urlPre := "https://api.github.com/repos"; }}
+{{ $username := "Apache" }}
+{{ $repo := "camel-website"}}
+{{ $token := ""}}
+<!-- Enter token here -->
+{{ $scope := "all"}}
+{{ if eq $token "" }}
+<p>Unable to get contributors details[set token]</p>
+{{else}}
+{{ $collaborators := getJSON $urlPre "/" $username "/" $repo 
"/collaborators?access_token=" $token  }}
 
 Review comment:
   There are two sources of data: from apache.org and GitHub. From apache.org 
we can get the committers and project management committee members and from 
GitHub we can get contributors. On GitHub some of the contributors are also 
committers and project management committee members.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to