这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.

Add support for the GitHub Memberships check API #164

Closed
wants to merge 3 commits into from
Closed

Add support for the GitHub Memberships check API #164

wants to merge 3 commits into from

Conversation

jeffwilcox
Copy link
Contributor

With the updates to the organization APIs on GitHub, there's a need for some new endpoints.

The https://developer.github.com/v3/orgs/members/#check-membership API is currently in opt-in preview, and requires a specific Accept header for that call. This PR adds the API and uses the existing getOptions client call to do so.

General info on the changes: https://developer.github.com/changes/2015-01-07-prepare-for-organization-permissions-changes/

Understand if you would rather wait until the API ships on the GitHub side without the requirement for the special header. I didn't find much test coverage on the org side so have not added any tests, sry.

Thanks.

@@ -1,6 +1,6 @@
{
"name": "octonode",
"version": "0.6.14",
"version": "0.6.15",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't do this please. I will make a separate commit.

@pksunkara
Copy link
Owner

Just one small thing. Remove that and I can merge this. Thanks for the PR 😄

@jeffwilcox
Copy link
Contributor Author

Removed, sorry about that.

Also, the .DS_Store insertion into .gitignore keeps some of the Mac Finder folders from appearing in the Git changes; I can remove that if you prefer not to commit that.

Thanks for the great library!

@pksunkara
Copy link
Owner

Could you squash that last commit into the first commit? It's just I like to keep the history a bit clean.

@jeffwilcox
Copy link
Contributor Author

Sorry I'm not going to be able to get back to this soon. I'll see if I can find the time though.

@pksunkara
Copy link
Owner

I will do this locally then. Thanks for the PR.

pksunkara added a commit that referenced this pull request Feb 27, 2015
Add support for the GitHub Memberships check API
@pksunkara
Copy link
Owner

Merged using command line.

@pksunkara pksunkara closed this Feb 27, 2015
@jeffwilcox jeffwilcox deleted the memberships-api branch February 27, 2015 19:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants