49 Commits
Author SHA1 Message Date
KeelTrace 4340312491 fix: Accept 202 when deleting app installation (#4529) 2026-09-08 12:46:38 -04:00
Ajay Kemparaj f9fec07de4 feat: Require Go 1.26 and use new(expr) for pointer literals (#4481) 2026-08-28 12:18:49 -04:00
Glenn Lewis 595de3d4b8 chore: Replace time.Date with referenceTime (#4325) 2026-06-24 15:42:55 -04:00
Oleksandr Redko 531d1cfb59 test: Fix test names and error messages (#4284) 2026-06-05 11:02:34 -04:00
Oleksandr Redko 3215e0320e test: Remove redundant Marshal tests (#4266) 2026-06-04 09:22:07 -04:00
Glenn Lewis c7788f9233 refactor!: Change app installation Find* methods to Get* (#4243)
BREAKING CHANGE: App installation methods are renamed from `Find*` to `Get*`.
2026-05-21 10:40:38 -04:00
Danyal Ahmed 223b7e6c63 feat: Add enterprise app installation lookup (#4230) 2026-05-17 10:00:06 -07:00
Dhananjay Mishra 0a16e22eba refactor: Use testJSONBody helper for request body assertions in tests (#4183) 2026-05-01 08:13:24 -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 233fe03e17 test: Use t.Context() instead of context.Background() (#3750) 2025-10-03 08:09:47 -04:00
Oleksandr Redko f68f136d3c chore: Format code with gofumpt (#3689) 2025-09-22 14:16:47 -04:00
Oleksandr Redko f66ed85955 feat: Deprecate and replace Bool,Int,Int64,String with Ptr using generics (#3355) 2024-12-10 21:36:09 -05:00
Glenn Lewis dc884c26ca Add t.Parallel to unit tests (#3297) 2024-10-05 07:29:05 -04:00
Glenn Lewis e56d378b96 refactor: Do not call teardown manually in tests (#3296) 2024-10-01 11:52:30 -04:00
Oleksandr Redko 2406067865 fix: Correct typos in vars, comments, tests (#3289) 2024-09-24 11:05:32 -04:00
Hi120ki 90bf4320bf Add Organization PAT fields to InstallationPermissions struct (#3243) 2024-08-21 11:00:54 -04:00
tomfeigin 0e99a54257 Add fields to the InstallationPermissions struct (#3184) 2024-06-11 11:14:37 -04:00
Matthew William Reidy 108f958f6f Allow an empty array of repo ids as a request parameter (#3155)
Fixes: #3106.
2024-04-29 17:28:04 -04:00
Abhijit Hota 7d26b99722 Add List Installation Requests API (#2947) 2023-10-03 19:00:16 -04:00
WillAbides fd33b81221 Fix linting (#2903) 2023-09-08 08:55:37 -04:00
Victory Osikwemhe cdecead485 Change all fields from time.Time to github.Timestamp (#2646) 2023-01-26 16:39:42 -05:00
Pete Wagner 52cc49edb3 Add org permissions to InstallationPermissions (#2452) 2022-09-06 21:01:46 -04:00
Eric Norris e87b9aa0c3 Support specifying repository names (#2123) 2021-10-12 13:00:04 -04:00
Sagar Sonwane 908fe35ef9 Add test cases for JSON resource marshaling (#1928) 2021-07-08 16:32:37 -04:00
Xun Guo 8751f3d7d2 Add missing installation permissions (#1880)
Fixes: #1879.
2021-06-01 10:23:30 -04:00
Will Norris 8b2866e7e2 compare decoded go struct for request body (#1876) 2021-05-26 13:01:15 -07:00
Sagar Sonwane 51e7595f87 fix: Updated comparisons in test files (#1875)
Replaced all reflect.DeepEqual comparisons in test files with cmp.Equal.

Fixes: #1851
2021-05-26 11:49:24 -07:00
gsavit dfc45d98d3 Add Actions field to InstallationPermissions model (#1803)
Fixes: #1802.
2021-02-16 14:20:53 -05:00
Glenn Lewis 8341f9b382 Improve apps.go coverage (#1702) 2020-12-25 19:42:58 -05:00
Glenn Lewis 460db534b8 Refactor context.Background in tests (#1672) 2020-12-16 05:58:28 -05:00
Vikky Omkar 8e1859fece Remove graduated GitHub v3 API preview headers (#1618)
Fixes: #1616.
2020-09-17 11:18:51 -04:00
Martin Holman 0bc3888d42 Update content type header for AppsService.CreateAttachment (#1602) 2020-08-17 12:43:18 -04:00
Ryan Mast 85b6463f21 Add DeleteInstallation for GitHub Apps (#1516)
Fixes https://github.com/google/go-github/issues/1436.
2020-05-06 21:45:28 -04:00
Joshua Bezaleel Abednego 0498a666dd Add SuspendInstallation and UnsuspendInstallation for GitHub Apps (#1519)
Fixes #1517.
2020-05-06 21:22:20 -04:00
Emory Ruscus 61d9e5b01e Update apps.go (#1238)
Closes #1182.
2019-08-23 21:25:00 -04:00
Mark Tareshawty 7a8ff7a9b9 Add missing permissions to InstallationPermissions (#1180) 2019-06-19 09:25:48 -04:00
Nadav Kaner 3bd1b5e2d5 Support content attachments API (#1139) 2019-04-05 15:53:42 -04:00
Tasya Aditya Rukmana fa0b351592 Update CreateInstallationToken url (#1030)
Fixes #981.
2018-10-08 07:52:59 -04:00
Guðmundur Bjarni Ólafsson fc33ffe773 Add Apps.FindRepositoryInstallationByID (#979) 2018-08-16 07:13:55 -04:00
Brad Moylan 2f5e75efda Installation: Use *Timestamp instead of *time.Time (#965) 2018-08-06 11:27:19 -04:00
Oleg Kovalov 530b7c552e Fix named consts (#962) 2018-08-03 21:59:44 -04:00
haya14busa b14883f2b7 add created_at/updated_at fields to Installation type (#952) 2018-07-15 19:53:32 -04:00
haya14busa 60f2773bd9 Add find installation by org, repo and user API (#933)
Fixes #932.
2018-07-04 11:15:22 -04: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
Chris King df88dd9538 Remove global test variables in favor of local. (#766)
This refactor removes the global test variables used by all tests,
replacing them with local variables that are independent in each test.

This is better style, easier to read and be confident about correctness,
and allows tests to be parallelized in the future.

Resolves #762.
2017-12-02 14:34:41 -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
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