API URLs starting with "/" does not play well with Github Enterprise,
whose API endpoint looks like "http(s)://hostname/api/v3/".
This fixes incorrect URLs in miletones APIs.
This change adds the fields "DiffHunk", "OriginalPosition", and "OriginalCommitId" to the PullRequestComment struct. These fields provide important information about the location of a comment.
- GetOrgMembership updated to accept user parameter (BREAKING CHANGE)
- EditOrgMembership updated to accept user parameter (BREAKING CHANGE)
- Added new RemoveOrgMembership method
Ref #187
- Add new options struct to AddCollaborator (BREAKING CHANGE)
- Add Permissions field to User struct, which gets populated when
calling ListCollaborators
AddTeamRepo's "permission" option and AddTeamMembership's "role" option
should both be passed as part of a JSON request body, not as URL query
parameters.
- AddTeamMembership and ListTeamMembers both take new Option structs to
specify role. (BREAKING CHANGE).
- Add Role to ListMembersOptions
- update Permission and Role docs
Ref #187
- allow setting permission when adding a team repository
- update IsTeamRepo to return a *Repository instead of a bool, since the
Repository contains the permission data for the team. This is a
BREAKING CHANGE, however I don't think this is an often used method.
- update docs for setting the team permission when creating or editing a
team.
Ref #187
These changes are now official, so the custom media type is no longer
needed. This does go ahead and remove RepositoryListOptions.IncludeOrg
which was being used to trigger the custom media type. Even though this
is a breaking change, it was only in for a month and I don't think it
was too widely used during that time.
Fixes#219
/cc @captncraig who may have been using this
Change-Id: Ib54ced78c51a9c4e54e470136d36f91bf4716e8c
GitHub occasionally changes the IP addresses from which GitHub Pages
websites are served. For users of the service, they must upgrade any A
records to these IP addresses to continue using the service. This patch
provides this data in the `APIMeta` struct as the property `Pages` and
populates from the /meta endpoint.
Release Announcement:
https://developer.github.com/changes/2015-06-11-pages-a-records/Fixes#212.
Supports the updated starring API as mentioned in issue #188.
There is now a new struct called StarredRepository which holds a Repository and the new `starred_at` timestamp.
For now there is a special media type to request the new API. I've added a TODO for it to be deleted when the new API fully launches.
There's no way of serializing/requesting an empty required_contexts that
is needed for bypassing the commit status checks for the ref.
It's a breaking change but will allow to serialize an empty array and
omit empty value as expected.
Also:
- add PingHook to RepositoriesService
- move ListServiceHooks to Client, since hooks are no longer just for
repos. Leave behind Repositories.ListServiceHooks for backwards
compatibility
Fixes#178