X Tutup
The Wayback Machine - https://web.archive.org/web/20201018045011/https://github.com/eperm/go-github/releases
Skip to content
Sep 12, 2018
Restrict request params of CreateRelease and EditRelease to known sub…
…set (google#997)

Fixes google#992.
Aug 27, 2018
Introduce Go modules and remove support for Go 1.8 (google#985)
Aug 10, 2018
Update orgs_members.go (google#871)
Aug 6, 2018
Installation: Use *Timestamp instead of *time.Time (google#965)
Jan 25, 2018
Migrate IDs to int64 type (google#816)
A helper function "Int64" is also implemented to assist the migration of
unit tests.

Refer google#597.
Oct 31, 2017
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)
Oct 13, 2017
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.
Oct 3, 2017
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.
Sep 1, 2017
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.
Aug 30, 2017
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.
You can’t perform that action at this time.
X Tutup