22 Commits
Author SHA1 Message Date
Jam Balaya bc32590938 feat!: Support reason in UsersService.Unsuspend (#4614)
BREAKING CHANGE: `UsersService.Unsuspend` now takes an `UnsuspendUserRequest` body argument.
2026-10-15 08:07:00 -04:00
Jam Balaya 70b9759927 refactor!: Rename LockIssueOptions, PullRequestBranchUpdateOptions, and UserSuspendOptions to ...Request and pass them by value (#4612)
BREAKING CHANGE: `LockIssueOptions`, `PullRequestBranchUpdateOptions`, and `UserSuspendOptions` are renamed to `LockIssueRequest`, `UpdatePullRequestBranchRequest`, and `SuspendUserRequest` and are passed by value to `IssuesService.Lock`, `PullRequestsService.UpdateBranch`, and `UsersService.Suspend`; `LockIssueRequest.LockReason` is now `*string`.
2026-10-13 07:32:08 -04:00
Glenn Lewis 94c9c9abbe chore: Update openapi_operations.yaml (#4588) 2026-09-22 20:38:23 -04:00
Oleksandr Redko 3f47638460 refactor: Fix parameters in method endpoints (#4300) 2026-06-17 07:19:34 -04:00
Glenn Lewis 40ed57ff66 chore: Update openapi_operations.yaml (#4228) 2026-05-14 18:05:58 -04:00
Steve Hipwell 9fbf4bef19 feat!: Refactor request context (#4151)
BREAKING CHANGE: All internal calls now provide `Context` via the `Request` itself.
2026-04-24 14:45:31 -04:00
Glenn Lewis 27db7f9d23 chore: Update openapi_operations.yaml (#4041) 2026-02-25 20:15:08 -05:00
Glenn Lewis c65cb55bcf Update openapi_operations.yaml (#3895) 2025-12-29 10:43:53 -05:00
Glenn Lewis 578f42edb5 chore: Update openapi_operations.yaml (#3802) 2025-11-04 13:22:30 -05:00
Josh Soref 22f7fe37fb Fix spelling issues (#3792) 2025-10-27 10:01:25 -04:00
Glenn Lewis ef319d5576 Update OpenAPI (#3574) 2025-05-10 09:46:23 -04:00
Glenn Lewis a03e88cdf4 Update openapi (#3526) 2025-03-20 11:33:13 -04:00
Glenn Lewis f9210c4672 Update OpenAPI (#3352) 2024-11-19 07:59:59 -05:00
Glenn Lewis 02f31995d5 Update openapi_operations.yaml (#3322) 2024-10-10 09:35:11 -04:00
Hari Charan Korrapati 8c1032ac98 feat!: Update deprecated endpoints in github/action_variables.go (#3104)
Fixes: #3103.

BREAKING-CHANGE: The following endpoints now take `owner` and `repo` (string) names instead of an integer repo ID:

ActionsService.ListEnvVariables
ActionsService.GetEnvVariable
ActionsService.CreateEnvVariable
ActionsService.UpdateEnvVariable
ActionsService.DeleteEnvVariable
2024-03-28 14:33:35 -04:00
WillAbides 1e66201027 Update metadata (#3012) 2023-12-02 16:47:01 -05:00
WillAbides a54bc7da1d Use metadata to reconcile go-github with GitHub's OpenAPI descriptions (#2919) 2023-11-03 10:26:59 -04:00
kadern0 69231319df Change opt param to opts (#1417)
Fixes #1415.
2020-02-09 20:01:54 -05:00
Jordan Sussman 443eb9c253 add UserSuspendOptions for user.Suspend (#1112) 2019-02-07 22:42:51 -05:00
Jordan Sussman 60432275bd update broken and old enterprise doc links (#1108) 2019-01-27 20:28:38 -05:00
Dmitri Shuralyov 23d6cb9cac Add support for context package to all endpoints. (#529)
This is a large breaking API change. It is unavoidable and necessary
to resolve #526. This breaking change is part of bump to libraryVersion 3.

It adds ctx context.Context as first parameter to all endpoint methods,
including Do.

Updating for this API change should be easy and the compiler will help
catch instances that need to be updated. For example:

	main.go:193: not enough arguments in call to gh.Activity.MarkRepositoryNotificationsRead
		have (string, string, time.Time)
		want (context.Context, string, string, time.Time)
	...

You should pass the available context as first parameter. If your code
does not have context.Context available and you want to maintain previous
normal behavior, use context.Background(). Don't pass nil context; use
context.TODO() instead if you wish to delay figuring out the best context
to use. Then you can address the TODO at a later time.

Refer to documentation of package context at https://godoc.org/context
for more information.

This commit also changes ./tests/fields to use context.Background()
instead of deprecated oauth2.NoContext.

Resolves #526.
2017-02-20 16:05:42 -05:00
Martin-Louis Bright 9b08b7fd98 Adding administration functions for users. 2015-01-12 13:28:19 -08:00