26 Commits
Author SHA1 Message Date
Glenn Lewis 94c9c9abbe chore: Update openapi_operations.yaml (#4588) 2026-09-22 20:38:23 -04:00
Jam Balaya 30c65e0c14 refactor!: Pass LDAP mapping request bodies by value via new UpdateUserLDAPMappingRequest and UpdateTeamLDAPMappingRequest (#4432)
BREAKING CHANGE: `AdminService.UpdateUserLDAPMapping` and `UpdateTeamLDAPMapping` now take `UpdateUserLDAPMappingRequest` and `UpdateTeamLDAPMappingRequest` (with non-pointer `LDAPDN`) by value.
2026-08-05 17:08:54 -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
Oleksandr Redko 33cf038ac1 docs: Add apiVersion to GitHub API link (#4147) 2026-04-11 10:47:17 -04:00
Glenn Lewis a2063a76fb chore: Remove unnecessary use of new and &SomeStruct{} and add new extraneousnew custom linter (#4106) 2026-03-18 17:12:53 -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
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
Glenn Lewis 7a7a7f0943 Update URLs (#2373)
Fixes: #2360.
2022-05-24 08:43:48 -04:00
Glenn Lewis a64f3a6d08 Update URLs (#1659) 2020-12-02 10:39:08 -05:00
Glenn Lewis 159b448168 Switch to new GitHub v3 API Documentation website (#1621) 2020-09-01 18:30:47 -04:00
Jordan Sussman 6688527555 Add support for UserEvent webhooks (#1302)
Fixes #1301.
2019-12-05 07:44:27 -05:00
Kshitij Saraogi e48060a28f Migrate IDs to int64 type (#816)
A helper function "Int64" is also implemented to assist the migration of
unit tests.

Refer #597.
2018-01-25 10:59:44 -08: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
Nick Spragg 30a21ee1a3 Return nil error explicitly when there is no error. (#546)
Helps #536.
Follows #542.
2017-02-13 17:27:33 -05:00
Andy Lindeman dccec7b5f1 Adjusts comment style based on feedback 2016-11-30 21:12:47 -05:00
Andy Lindeman 69894f9ef7 Adds AdminService and functions for updating LDAP mappings
Closes #479.

Change-Id: Ib4aba6a5ccea430abdb4e9b1b2351870bf4ea79f
2016-11-30 09:54:27 -08:00