25 Commits
Author SHA1 Message Date
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
Oleksandr Redko 0c6bd9186d fix: Remove custom Accept in Apps.ListRepos and Apps.ListUserRepos (#3609) 2025-06-27 11:57:22 -04: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
Andy Grunwald 9d6877cb95 Apps-Service: Add baptiste-preview to ListRepos and ListUserRepos (#1860) 2021-04-27 14:49:32 -04:00
Andy Grunwald ed5a8f3f3f Apps.ListRepos/Apps.ListUserRepos: Add mercy-preview + nebula-preview headers (#1806) 2021-03-05 10:36:25 -05:00
Hemanth Krishna 24b281b68b Change ListRepos and ListUserRepos to return new ListRepositories struct with count (#1794)
Fixes: #1791 .
Note that this is a breaking API change slated for `v34`.
2021-02-04 09:47:28 -05:00
Glenn Lewis a64f3a6d08 Update URLs (#1659) 2020-12-02 10:39:08 -05:00
Vikky Omkar 8e1859fece Remove graduated GitHub v3 API preview headers (#1618)
Fixes: #1616.
2020-09-17 11:18:51 -04:00
Glenn Lewis 159b448168 Switch to new GitHub v3 API Documentation website (#1621) 2020-09-01 18:30:47 -04:00
Glenn Lewis 0683ca03b4 Update URLs (#1558) 2020-06-24 19:27:03 -04:00
Weslei Juan Moser Pereira 4ca0dcc089 Remove graduated custom media headers (#1493)
Fixes #1488.
2020-04-19 16:02:45 -04:00
Glenn Lewis 259aa56b9e Create tool to update and validate GitHub v3 API URLs (#1477)
Fixes #1476.
2020-04-09 21:28:23 -04:00
kadern0 69231319df Change opt param to opts (#1417)
Fixes #1415.
2020-02-09 20:01:54 -05:00
vikkyomkar 200fc50fc0 Added support to revoke apps installation token (#1386)
* added support to revoke apps installation token

* updated testcase message
2020-01-19 14:00:12 -05:00
Arda Kuyumcu 2205ffae75 Fix API endpoints for add and remove repo for installation (#1096)
Fixes #1095.
2019-01-11 22:39:33 -05:00
Avinash Sridhar e7bb4b8ce2 Add remaining app fields (#861) 2018-03-05 09:57:21 -08:00
Avinash Sridhar 9ecbd7c922 Add app_id to the Installation struct (#852)
Fixes #851.
2018-03-01 10:59:25 -08: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
Sarasa Kisaragi b527232f71 Set Accept header in AppsService.ListUserRepos. (#798)
Without this custom media type in the Accept header, GitHub API responds
with:

	{
	  "message": "If you would like to help us test the Integrations API during its preview period, you must specify a custom media type in the 'Accept' header. Please see the docs for full details.",
	  "documentation_url": "https://developer.github.com/v3"
	}

The custom media type requirement is documented at
https://developer.github.com/changes/2016-09-14-Integrations-Early-Access/.

Fixes #797.
2017-12-02 14:20:33 -05:00
Sebastian Mandrean 621edeae72 Add missing GitHub Apps methods. (#733)
GitHub API docs: https://developer.github.com/v3/apps/.
2017-10-30 03:01:45 -04:00
Jeremy L. Morris 99750d1edb Add AppsService.{Add,Remove}Repository methods. (#749)
GitHub API docs:

-	https://developer.github.com/v3/apps/installations/#add-repository-to-installation
-	https://developer.github.com/v3/apps/installations/#remove-repository-from-installation
2017-10-13 18:22:48 -04:00
Bradley Falzon 108c01a3cb Rename IntegrationsService to AppsService.
This is to follow new GitHub Apps naming from GitHub Integrations.
2017-06-03 22:50:28 -04:00