Skip to content

Tags: simonfl3tcher/go-github

Tags

v17.0.0

Toggle v17.0.0's commit message
Update orgs_members.go (google#871)

v16.0.0

Toggle v16.0.0's commit message
Installation: Use *Timestamp instead of *time.Time (google#965)

v15.0.0

Toggle v15.0.0's commit message
Migrate IDs to int64 type (google#816)

A helper function "Int64" is also implemented to assist the migration of
unit tests.

Refer google#597.

v14.0.0

Toggle v14.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge NestedTeamsPreview branch to master (google#747)

* Add support for fetching parent team (for nested teams). (google#723)

Create mediaTypeNestedTeamsPreview const for
https://developer.github.com/changes/2017-08-30-preview-nested-teams/.

Add parent field to the Team struct.

Set preview API media type in endpoints that return a team, so that
the new parent field gets populated.

Helps google#714.

* Add NewTeam struct. (google#724)

This replaces Team with NewTeam in function that accept a team for
creating or editing a team. The NewTeam struct is similar to the
existing NewPullRequest for creating pull requests.

We need a new struct because the set of parameters for creating or
editing a team contains some parameters that are not in the parameter
for teams, and most properties of teams cannot be used for editing.

The specific change is that Teams are returned with a parent field,
but are created/edited with a parent_id field.

Helps google#714.

* Add NestedTeamsPreview header to remaining endpoints

Fixes google#714.

* Change ParentTeamID field to int (from string). (google#748)

Using the code as written in the `NestedTeamsPreview` branch produces
an error when talking to the GitHub API:

	panic: PATCH https://api.github.com/teams/2514825: 422 Invalid request.

	For 'properties/parent_team_id', "2514824" is not a number or null. []

The documentation at https://developer.github.com/v3/orgs/teams/#create-team
states that this parameter is an id type which appears to mean an integer, not a string.
Also, id is an integer in the sample responses for Get team endpoint, etc.

* Bump libraryVersion

* NestedTeamsPreview: Add the ListChildTeams endpoint (google#758)

v13.0.0

Toggle v13.0.0's commit message
Remove ListOptions from RepositoryListAllOptions. (google#751)

The standard pagination options have no effect in the /repositories endpoint,
both empirically and according to the documentation:

> Note: Pagination is powered exclusively by the since parameter. Use the
> Link header to get the URL for the next page of repositories.

GitHub API docs: https://developer.github.com/v3/repos/#list-all-public-repositories

Bump up libraryVersion since this is a breaking API change.

v12.0.0

Toggle v12.0.0's commit message
Change ListPendingOrgInvitations method to take string org name. (goo…

…gle#731)

The /orgs/:org GitHub API endpoint expects the string name of the
organization, not its integer ID (that would be /organizations/:id
endpoint, which we're generally not using).

Change the org parameter type from int to string to make it possible to
specify the organization via its name.

This method wasn't functional before.

Fixes google#730.

v11.0.0

Toggle v11.0.0's commit message
Rename UpdateAt to UpdatedAt; fix JSON tag in Deployment structs. (go…

…ogle#709)

Authorization struct had a "updated_at" JSON key mapped to UpdateAt,
which was an oversight/typo. It has been renamed to UpdatedAt, like all
other similar fields.

Deployments and DeploymentStatus structs had incorrectly mapped their
UpdatedAt field to a non-existing "pushed_at" JSON key. That means
their values were never populated. This change fixes that.

Bump library version as this is a breaking change.

Helps google#605.

v10.0.0

Toggle v10.0.0's commit message
Add ListCollaboratorsOptions.Affiliation to ListCollaborators. (googl…

…e#706)

This change adds Affiliation parameter support to ListCollaborators
method by changing its ListOptions argument to a newly created
ListCollaboratorsOptions struct.

This is a neccessary breaking API change. The compiler will help catch
it, and updating code is easy. If the ListOptions argument was nil
before, it can stay nil after. Otherwise, you should change this:

	opt := &github.ListOptions{Page: 2}

To this:

	opt := &github.ListCollaboratorsOptions{
		ListOptions: github.ListOptions{Page: 2},
	}

GitHub API docs: https://developer.github.com/v3/repos/collaborators/#list-collaborators.

Fixes google#647.

v9.0.0

Toggle v9.0.0's commit message
Add preview support for Team Review Requests API. (google#682)

This is a breaking API change to support an upcoming github.com REST API
breaking change. It adds support to add, delete, and fetch team review requests.

GitHub Announcement: https://developer.github.com/changes/2017-07-26-team-review-request-thor-preview/

Increase libraryVersion by one.

Fixes google#678.

v8.0.0

Toggle v8.0.0's commit message
Rename GitHub Apps installation and installation_repositories events.

With the release of GitHub Apps (was GitHub Integrations), GitHub
have renamed the integration_installation and integration_installation_repositories
event to installation and installation_repositories respectively.

This is a breaking change for those using this API, and can be fixed with:

gofmt -w -r 'IntegrationInstallationEvent -> InstallationEvent' [path ...]
gofmt -w -r 'IntegrationInstallationRepositoriesEvent -> InstallationRepositoriesEvent' [path ...]

Closes google#627.
Updates google#434.