Commit Graph

951 Commits

Author SHA1 Message Date
Union Palenshus 77213430f1 Adding support for the Device Flow Oauth authentication pattern (#2310)
Adding support for the Device Flow Oauth authentication pattern
2022-04-20 16:29:10 -05:00
Pedro Brito b829a8443e Add Swift language (#2344)
Co-authored-by: Pedro Brito <Pedro.Brito@checkmarx.com>
2021-08-23 09:27:09 -03:00
Sean Killeen 57fe2ce193 Add repository topics support (#2246) 2021-02-25 10:40:25 -04:00
Ivan Josipovic 6105a9deaf preview support for repository visibility (#2217) 2021-02-21 18:38:00 -04:00
Phil Haack e40c792e27 Change Payload to a Dictionary<string, string> (#2303)
When serializing the `NewDeployment` type, the `Payload` is serialized as an escaped string because JSON.NET doesn't know it's meant to be JSON.

This causes a problem when you call the API because the Payload is supposed to be a JSON dictionary that's just part of the overall payload. It's not supposed to be an escaped string.

That's why the JSON deserializer fails on it. Not only that, any deployments created using the current Octokit.net will create an invalid payload.

This PR fixes it by changing the type of `Payload` to a dictionary. THIS IS A BREAKING CHANGE, but the old behavior was broken so it forces a new correct behavior.

Fixes #2250
2021-02-21 17:11:51 -04:00
Samantha Houts 7400420c92 Add "project" to the IssueNoMetadataQualifier (#2227)
Allows you to search for issues with no project.
2021-02-13 16:34:36 -04:00
Fredi Kats 67555533e3 feat: add missed props for organization (#2239) 2021-02-13 16:34:02 -04:00
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
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
Mitch Denny b9d1f448d4 Handle requested_action field for check-runs. (#2197) 2020-06-05 16:59:00 -03:00
Next Turn fd3b1c7e79 Add support for ReleaseEvent payload (#2170) 2020-04-11 20:44:57 -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 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
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
Brendan Forster eee57895ed just some cleanup (#2106) 2020-02-24 18:17:20 -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
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
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 28892df03d some cleanup of the project (#2063) 2020-01-23 14:51:00 -04:00
Steve Desmond e9409e0cb5 Update IssueEvent ID field from int to long (#2060) 2020-01-19 18:54:46 -04:00
Henrik Andersson a05d49e81d Expose affiliation parameter when listing collaborators (#2043) 2019-11-18 07:10:35 -04:00
Jose de Jesus Medina fd6bca910c fix language with spaces giving wrong results (#2038) 2019-11-13 09:31:24 -04:00
Jose de Jesus Medina 5eb9f06b24 Fix typos in comments (#2040) 2019-10-30 13:51:20 -03:00
Henrik Andersson 8b263cdc0f Add get/update/delete methods for organization memberships (#2014) 2019-10-21 20:08:58 -03:00
Jose de Jesus Medina 90812951f4 add JupyterNotebook to Repository Search (#2032) 2019-10-21 20:02:33 -03:00
Henrik Andersson 311e89a5e9 Add missing issue event types (#2024)
* Add 'transferred' event type

* Add missing force push event. Fixes https://github.com/octokit/octokit.net/issues/2025
2019-10-07 21:19:07 -03:00
Eric Carlson 3e7c70cf4e add support for multiple extension filters (#2019)
* add support for multiple extension filters

* update documentation, use ienumerable instead of ilist
2019-10-03 08:53:33 -03:00
Brendan Forster ce5ea64428 migrate to dotnet-format tool (#2016)
* migrate to new dotnet-format tool in build script (run on local build)
* reformat code
2019-09-24 11:34:50 -03:00
Brendan Forster 8cd0b341dd Begin implementation of Enterprise ManagementConsole API, redux (#2010)
* Initial implementation of ManagementConsole - maintenance mode

* Add environment var support for management console password for integration tests

* Add reactive client and unit tests

* Update some xmlDoc

* I think this is a better way to setup the underlying baseUri on IConneciton, to achieve managemet console access rather than requiring a specific GitHubClient that cant call normal API's
Instead, the management client methods can check the base Url and if it contains /api/v3/ they can set their relative endpoint Uri to include a leading "/" which will cause the /api/v3/ to be removed.

* Update EnterpriseClient.cs

Fix xml comments

* Update IEnterpriseClient.cs

Fix xml comments

* Still trying to get the xmDoc perfect, thanks app veyor :)

* XmlDoc'ing my way to success

* Add specific test attribute for management console tests

* check chronic string empty/null

* Use helper's password field in test

* Tidy up maintenance mode tests by using a context/destructor to manage the initial/end state of maintenance mode

* make internal and tidy up URL concatenation

* move GHE endpoint fixup inside ApiUrls methods

* Rework request object to be the correct structure so SimpleJsonSerializer can be used to serialize it.  Remove MaintenanceDate class and just pass in the Date/string for when
Still need to use UrlFormEncoding rather than json in the POST body though...

* Create abstract base class for FormUrlEncoded parameters (similar to existing RequetParameters) and inherit from it in UpdateMaintenanceRequest

* Fix maintenance context logic - destructor should always turn maintenance OFF regardless of initial requested state

* Fix xml comment

* Fix Xml comment

* Those pesky xml comments!

* Fine, I give up!

* Fix string.Format

* fix bad rebase

* fix failing convention tests

* restore missing whitespace

* writing some docs

* some edits

* edit
2019-09-22 15:09:56 -03:00
Henrik Andersson fafbf33b78 Implement Draft Pull Requests (#2009)
* Add draft PR preview header

* Add Draft property to models

* Update pull requests client and tests to use draft PR accept header

* Update observable pull requests client and tests to use draft PR accept header

* Add integration tests to create and retrieve draft pull requests
2019-09-22 13:38:56 -03:00
Henrik Andersson 63a4deae35 Add missing ID property to Milestone (#2007)
* Add Id property to Milestone model

* Exclude Riders workspace directory
2019-09-21 13:14:20 -03:00