2498 Commits

Author SHA1 Message Date
Miguel Ventura
36829cba3a Fix property types in PullRequestCommit (#2224)
PullRequestCommit Author and Committer fields were mistakenly typed with
Committer when they should be of type User.

Previously the types of properties were:

* `PullRequestCommit.Author/Committer`: `Committer`
* `Commit.Author/Committer`: `Committer`

Correct types should be:

* `PullRequestCommit.Author/Committer`: `User`
* `Commit.Author/Committer`: `Committer`

These fields always fail to deserialize in the API calls but produce no
errors, only objects with default values.
2021-02-13 16:33:35 -04:00
Sam Cackett
46787d2cb8 Add DeleteBranchOnMerge option for repositories (#2268) 2021-02-13 16:29:09 -04:00
Eric Carlson
20549430e5 Add support for multi users and orgs in SearchCodeRequest (#2291) 2021-02-13 16:28:32 -04:00
Colby Williams
17c31d1b19 Add HtmlUrl property to Team and Project models (#2249) 2020-10-06 10:02:29 -03:00
Jose de Jesus Medina
df77be29b1 Add license to repository search (#2258) 2020-10-06 09:50:40 -03:00
Jose de Jesus Medina
66a6781584 spellcheck round 2 (#2259) 2020-10-06 09:47:36 -03:00
Brendan Forster
08e7c14ced drop unused code related to PORTABLE flag (#2202) 2020-06-08 08:33:27 -03:00
Brendan Forster
d02a230172 some tidy up before cutting the release (#2201) 2020-06-07 18:25:51 -03:00
Fredrik Høisæther Rasch
af74ae8e20 Add Server Time Difference to ApiInfo (#2196) 2020-06-07 18:25:34 -03:00
Martin Alex Philip Dawson
8d3e7b3c2c add support for organization web hooks (#1884) 2020-06-07 16:53:20 -03:00
KarolGrzesiak
62c0b1fe08 Update Repository to include WatchersCount (#2182) 2020-06-07 14:11:56 -03:00
Bob Langley
1c026db1a9 Add support for creating project cards from PRs (#2185) 2020-06-07 13:54:56 -03:00
Fredrik Høisæther Rasch
449faaefea ChecksClient constructor should take interface arguments (#2194)
* ChecksClient ctor takes IApiConnection interface

Instead of requiring the concrete implementation type

* Ensure all clients nested under GitHubClient have a concrete implementation with a matching ctor.

An api client ctor should take either an IConnection or IApiConnection interface as argument.
2020-06-07 12:53:26 -03:00
Mitch Denny
b9d1f448d4 Handle requested_action field for check-runs. (#2197) 2020-06-05 16:59:00 -03:00
Brendan Forster
287861e4a7 rewrite the setup of responses to use a standard helper function (#2177) 2020-04-14 11:30:15 -03:00
Cédric Luthi
69d118230d Add support to get raw file content as byte[] (#2151) 2020-04-12 13:22:35 -03:00
Brendan Forster
8d7bda96e4 handle case insensitive headers when parsing for API rate limiting (#2175) 2020-04-12 13:04:30 -03:00
Next Turn
fd3b1c7e79 Add support for ReleaseEvent payload (#2170) 2020-04-11 20:44:57 -03:00
Brendan Forster
87d2b0fdc1 more cleanup of route metadata (#2158) 2020-03-19 16:21:16 -03:00
Brendan Forster
dc2f6ff001 first pass at cleaning up attributes (#2157) 2020-03-18 09:02:11 -03:00
Brendan Forster
327020750f add convention test for preview APIs (#2154) 2020-03-18 08:52:50 -03:00
Brendan Forster
e9516bb6c1 bugfix: improve fallback when StringEnum encounters null value (#2156) 2020-03-17 15:09:15 -03:00
Brendan Forster
f6a9a47200 Graduate review requests to what eventually shipped (#2153) 2020-03-15 11:33:32 -03:00
Brendan Forster
5de5258257 add attribute for tracking preview usage in the codebase (#2128) 2020-03-07 10:40:15 -04:00
Brendan Forster
216e4e315a move GitHubAppInstallationsClient into root namespace for consistency, annotate routes (#2131) 2020-03-06 09:30:53 -04:00
Brendan Forster
43d1b8b60d remove deprecated code for old Check Suites API (#2130) 2020-03-05 09:14:11 -04:00
Brendan Forster
f96885654f add metadata to each client action (#2124) 2020-03-04 21:10:38 -04:00
Alexander Salamatov
a2b0d87ce8 added Octokit.PullRequest.RequestedTeams property (#2123) 2020-03-04 09:57:38 -04:00
Cédric Luthi
c94cd05b8b Obsolete UnixTimestampExtensions methods (#2121)
* The equivalent of `public static DateTimeOffset FromUnixTime(this long unixTime)` exists in the framework since .NET Framework 4.6: https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset.fromunixtimeseconds
* The equivalent of `public static long ToUnixTime(this DateTimeOffset date)` exists in the framework since .NET Framework 4.6: https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset.tounixtimeseconds
2020-03-03 09:30:30 -04:00
Gudge
c1c6366a63 Update OAuth Token operations to new APIs (#2116)
* Update OAuth Token operations to new APIs

Per ['Deprecating OAuth Application API'](https://developer.github.com/changes/2020-02-14-deprecating-oauth-app-endpoint/)
the HTTP API endpoints called by CheckApplicationAuthentication,
ResetApplicationAuthentication and RevokeApplicationAuthentication are
being deprecated.

This PR updates those APIs to call the new HTTP API endpoints as
documented at the above link.

* Details

Amend CheckApplicationAuthentication, ResetApplicationAuthentication and
RevokeApplicationAuthentication to create an object containing the OAuth
access token and to call the single arg version of
ApiUrls.ApplicationAuthorization. The object is used as the request
body.

Amend CheckApplicationAuthentication to use POST.

Amend ResetApplicationAuthentication to use PATCH.

Remove the two arg version of ApiUrls.ApplicationAuthorization as it is
no longer called. Amend the single arg version to use the new API path.

Amend unit tests to account for the above changes.

* Update unit tests to check request payload

Add a check to the unit tests to verify that the request payload
contains an access_token field with the expected value.
2020-03-02 15:01:34 -04:00
Ridwan Hoq
8cf6dd2ff2 Add Rocket and Eyes emoji reactions (#2114)
Co-authored-by: Brendan Forster <brendan@github.com>
2020-02-25 22:29:43 -04:00
Jordan Brown
b904ada89f Implement Deployment Statuses Preview (#1895)
Co-authored-by: Brendan Forster <brendan@github.com>
2020-02-25 19:59:03 -04:00
Grzegorz Dziadkiewicz
04c9a9a0de Update MiscellaneousClient to ApiClient approach and add pagination support to GetAllLicenses. (#1716)
Co-authored-by: Brendan Forster <brendan@github.com>
2020-02-25 18:48:00 -04:00
Brendan Forster
65bb8d57d7 Allow fully qualified or short references to be used to generate "reference" Uri (#2110)
Co-authored-by: Brian <brian.hart@xylogix.net>
2020-02-25 18:24:42 -04:00
Brendan Forster
eee57895ed just some cleanup (#2106) 2020-02-24 18:17:20 -04:00
Brendan Forster
5223d1af5f improve handling of GetAllContentsByRef where root path is requested (#2105)
* add failing test for handling / as the path

* workaround issue by passing in what the API expects
2020-02-24 18:12:48 -04:00
Itai Bar-Haim
6fdd800f72 add new types for webhook commit payload (#1844)
Co-authored-by: Itai Bar-Haim <itai.barhaim@applitools.com>
2020-02-24 13:37:03 -04:00
Maxim Lobanov
fe6639f270 Add ProjectCard property to Issue Events model (#2102) 2020-02-24 10:56:52 -04:00
Maxim Lobanov
0074e76a8f add missed events (#2101) 2020-02-18 09:28:51 -04:00
dependabot-preview[bot]
2b2626be0d Bump System.Reactive from 3.1.0 to 4.3.2 (#2055)
* drop mentions of net45 from core

* Bump System.Reactive from 3.1.0 to 4.3.2

Bumps [System.Reactive](https://github.com/dotnet/reactive) from 3.1.0 to 4.3.2.
- [Release notes](https://github.com/dotnet/reactive/releases)
- [Commits](https://github.com/dotnet/reactive/compare/v3.1.0...rxnet-v4.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* upgrade from net452 to net46 in test projects

* drop netstandard1.1 support

* correct this test reference

* add necessary dependency for test project

* add new dependency needed for integration tests

* upload net462 code coverage

* upgrade environment for validating linqpad examples

* bump linqpad to latest 5.x release

Co-authored-by: Brendan Forster <brendan@github.com>
2020-02-10 06:33:41 -04:00
Brendan Forster
5de3791626 ensure datetime offset is encoded correctly for search APIs (#2091)
* add failing integration test for timestamp

* make the test pass by encoding the value

* generalize this pattern for now

* update tests to reflect change in date formatting
2020-02-09 22:13:44 -04:00
Brendan Forster
736c3bd388 handle int32 overflow with IssueTimeline API (#2092) 2020-02-09 22:11:26 -04:00
Brendan Forster
8dac9688d9 add new field to model for indicating whether repository is a template (#2090) 2020-02-09 12:44:24 -04:00
Brendan Forster
8cf4d5840e upgrade project tooling to .NET Core 3.1 (#2089) 2020-02-09 12:34:34 -04:00
Haytam Zanid
911dd4a9c3 Double quote issue labels in search API (#2084) 2020-02-09 11:38:59 -04:00
Brendan Forster
56895ea621 move formatting code to optional flag (#2085)
* move formatting code to flag

* reformat code
2020-02-06 10:48:38 -04:00
Ben Emdon
2d0124f8d8 Add stale check conclusion (#2080) 2020-02-03 20:33:35 -04:00
Jeffrey Palmer
321c9ba575 Add the undocumented (but used) check suite conclusion "skipped" (#2077) 2020-01-28 15:26:59 -04:00
Brendan Forster
03aa908935 switch to Microsoft.SourceLink.GitHub package to perform linking in build (#2074) 2020-01-28 09:07:20 -04:00
Brendan Forster
e065c86118 strip CoreOnly usages from codebase as they are no longer needed (#2072) 2020-01-28 08:46:10 -04:00