Commit Graph
115 Commits
Author SHA1 Message Date
Glenn Lewis b9027bd8e6 Add TriggeringActor to WorkflowRun (#2879)
Fixes: #2874 .
2023-08-16 12:50:10 -04:00
Gal Ofri 53cecba749 Support x-ratelimit-reset handling for secondary rate limits (#2775) 2023-05-14 07:34:50 -04:00
Geraldo Castro 9bfbc0063c Fix SCIM query params (#2680)
Fixes: #2679.
2023-03-08 20:54:57 -05:00
蒋航 14bb610698 Support HTTP Proxy from environment (#2686) 2023-03-08 13:23:40 -05:00
Christoph Jerolimov 8eac70f648 Fix parse token expiration (#2650)
Fixes: #2649 .
2023-01-31 21:51:43 -05:00
Gal Ofri @ Legit Security da244a46bd Add secondary rate limit handling (prevent remote requests) and fix primary rate limit categories (#2635)
Fixes: #2633.
2023-01-30 08:31:33 -05:00
Ilia Choly 63c1dee2dd Add NewTokenClient (#2637)
Fixes: #2636.
2023-01-25 10:17:13 -05:00
Glenn Lewis 9d020d70e3 Support new GitHub v3 API calendar-based versioning (#2581)
Fixes: #2580.
2022-12-09 11:22:41 -05:00
Austin Vazquez 959861361f Remove references to io/ioutil package (#2547) 2022-11-07 08:41:12 -08:00
aboy e5e45dad21 Add hooks support for WebSub (formerly PubSubHubbub) protocol (#2397)
Fixes: #1265.
2022-08-21 17:31:23 -04:00
Tim Rogers f2d99f17ea Include the version of go-github in User-Agent headers sent to the GitHub API (#2403) 2022-08-13 18:22:20 -04:00
Glenn Lewis 7a7a7f0943 Update URLs (#2373)
Fixes: #2360.
2022-05-24 08:43:48 -04:00
Sho Okada a58d5f0adf Add fields to RateLimits struct (#2340)
Fixes: #2339
2022-05-16 10:17:43 -04:00
Glenn Lewis 3e8a7f0fbe Clean up method return consistency (#2318) 2022-03-24 23:16:22 -04:00
Jille Timmermans 77b2d7586d Don't update the ratelimits if we got a response from a cache (#2273) 2022-02-17 11:15:14 -05:00
Glenn Lewis f5943dbb9a Fix since+page pagination bug (#2218) 2021-12-05 22:21:27 -05:00
Brian Langdon c6b75c116d Handle 'since' in addition to 'page' for pagination response (#2135) 2021-11-26 20:52:13 -05:00
Dalton Hubble a4ce810184 Parse Before/After Links into Response (#2154) 2021-11-15 11:55:08 -05:00
Alexander Melentyev 14b70d536e Fix linters issues (#2104) 2021-09-26 23:02:34 -04:00
Allan Guwatudde 9f7c203923 Add test cases to verify that error responses contain status code (#2093)
Fixes: #912.
2021-09-13 08:09:39 -04:00
w-haibara 54ec837fb6 Add TokenExpiration to Response (#2031) 2021-08-06 10:37:48 -04:00
Glenn Lewis a12f9cdc3e Add Client method (#2016)
Fixes: #1859.
2021-07-21 13:57:54 -04:00
Sagar Sonwane 2bb6770899 Add test cases for JSON resource marshaling (#1973) 2021-07-13 13:21:23 -04:00
Yusuke Kuoka 3ad61691b5 Add support for listing and getting repository/organization webhook deliveries (#1934)
Fixes: #1933.
2021-07-13 13:05:37 -04:00
Alexis Gauthiez cfcb8e1140 Enable Client.RateLimits to bypass the rate limit check (#1907)
Fixes #1899.
2021-07-08 16:13:45 -04:00
Nilesh Singh c9fec828b8 Modify GetBranch to handle redirects (#1901)
Fixes #1895.
2021-07-08 15:43:22 -04:00
Fabian Holler 30283c95f1 errorResponse: define struct types instead of using anonymous structs 2021-07-08 10:48:39 +02: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
Munia Balayil 7a077bbd73 Update error handling as per Go 1.13 guidelines (#1854)
Fixes: #1846.
2021-04-14 17:09:14 -04:00
Adrien Delorme 9318e629ec Add client.BareDo to allow user to handle the body (#1772) 2021-01-13 15:45:25 -05:00
Glenn Lewis 7081b5fe34 Improve repos.go coverage (#1768) 2020-12-26 11:39:11 -05:00
Glenn Lewis 38622b1c82 Improve actions_workflow_runs.go coverage (#1698) 2020-12-25 12:22:45 -05:00
Glenn Lewis 653916a994 Clean up coverage tests in checks_test.go (#1682) 2020-12-24 20:31:48 -05:00
Glenn Lewis 8e13abb977 Improve github.go code coverage (#1670) 2020-12-18 22:26:15 -05:00
Glenn Lewis 460db534b8 Refactor context.Background in tests (#1672) 2020-12-16 05:58:28 -05: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
Piyush Chugh 5f52968649 Fix GitHub Enterprise API subdomain (#1599)
Fixes: #1552.
2020-08-21 23:12:54 -04:00
SteelPhase 378bcfd2d1 Correct Enterprise upload url (#1510) 2020-04-27 20:58:39 -04:00
Alex Orr 07c03e832b Support for deprecating API authentication through query parameters (#1469) 2020-03-27 08:10:30 -04:00
Glenn Lewis 2078be4104 Support cursor pagination (#1384) 2020-01-20 13:01:00 -05:00
haya14busa be5502b713 Support unexpected error structure (#1364)
Fixes #540.
Related: #1136.
2020-01-07 21:14:12 -05:00
haya14busa b57bcf63fe Re-populate HTTP response body of ErrorResponse (#1363)
Fixes #1136.
2020-01-07 21:04:57 -05:00
Ioannis Georgoulas 1a07ca55c9 Add context nil check on client Doer (#1348)
Fixes #1260.
2019-12-09 09:20:32 -05:00
Sergio Garcia 81eca3eea3 Test for marshalling Organizations and make JSON comparison non sensitive to key order (#1303)
Helps #55.
2019-12-05 07:56:52 -05:00
tkhandel 0e41ab9770 Simplify rate limit error check (#1321)
Fixes #1318.
2019-12-05 07:55:17 -05:00
Daoq a01ea50f2f Add default enterprise suffix when creating an enterprise method (#958) (#1165)
Fixes #958.
2019-09-17 20:18:10 -04:00
Glenn Lewis 0573e88402 Add gen-stringify-test.go (#1196) 2019-06-20 21:47:17 -04:00
Ricco Førgaard 8bcc0479b1 Add tests for resource JSON marshaling and unmarshaling (#1189)
Helps #55.
2019-06-11 08:05:50 -04:00
Glenn Lewis 6264c79745 Return new http.Client when nil passed to NewClient (#1178)
Fixes #1173.
2019-05-29 22:05:01 -04:00