![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
current |
Assignee:
|
Unassigned |
Components:
|
github-api |
Created:
|
05/Feb/14 5:29 PM
|
Description:
|
The code at the bottom of the description when run in the jenkins script console returns 30 members of the 82 members in my organization. I have found no pattern to which members it returns. Some are public, some are private. All are in github groups but many others in those same groups are missing.
I discovered this because while using the github pullrequest builder plugin some users would be whitelisted and have their PRs run and some would not even though my organization was whitelisted. This appears to be the reason.
The jenkins github user we use is an organization owner so should be able to see all users, but as I said, the list returned is both public and private already.
import org.kohsuke.github.*;
serverAPIUrl = "https://api.github.com";
accessToken = "blahblah";
organisation = "myorg"
gh = GitHub.connectUsingOAuth(serverAPIUrl, accessToken);
org = gh.getOrganization(organisation)
members = org.getMembers();
members
|
Environment:
|
Jenkins 1.533 Github-api 1.43 ubuntu Amazon EC/2
|
Project:
|
Jenkins
|
Priority:
|
Major
|
Reporter:
|
John Russell
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit
https://groups.google.com/groups/opt_out.