996 Commits

Author SHA1 Message Date
Chris Simpson
651d9818c7 ci(build): Fixes a number of warnings for a cleaner build (#2529)
* Fixing a number of warnings for a cleaner build

* Removing extra Summary slashes
2022-08-08 10:20:37 -05:00
notauserx
536e5c3737 feat: adds active lock reason to issue (#2525) 2022-08-05 16:44:17 -05:00
Nick Floyd
6e72fdaa59 feat: Drop support for .NET 4.6 (#2521) 2022-08-04 12:12:49 -05:00
notauserx
4d46d5fb41 docs: update code docs for SetRequestTimeout (#2520) 2022-08-03 10:17:48 -05:00
Chris Simpson
2f7bd00dd6 feat: Removing accept header previews (#2515) 2022-08-01 09:37:23 -05:00
Chris Simpson
6892df80fe feat: Adds codeowners errors endpoint (#2512) 2022-07-27 13:53:02 -05:00
Chris Simpson
251c3a26fc feat: Adds 4 new Reaction delete routes and obsoleting existing routes (#2494) 2022-07-22 11:28:30 -05:00
Chris Simpson
8b5a7fceaf feat: Fixing master > main in integration tests (#2489) 2022-07-20 17:17:10 -05:00
tasadar2
8e6bcd1e49 [FEAT] Added enterprise pre-receive hooks client (#2375) 2022-07-11 09:59:24 -05:00
dependabot[bot]
73b7a7a18c [DEPS] Bump Microsoft.SourceLink.GitHub from 1.0.0 to 1.1.1 (#2372) 2022-07-11 09:10:15 -05:00
Lee Boynton
23a91a492e Add method to check if repo vulnerability alerts are enabled (#2453) 2022-07-06 11:29:21 -05:00
Chris Simpson
f317f9dadc Support for IsTemplate and Create Template from Repository (#2331) 2022-06-30 15:20:45 -05:00
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
dependabot[bot]
e9fbe84657 Bump Microsoft.NETFramework.ReferenceAssemblies from 1.0.0 to 1.0.2 (#2325)
Bumps [Microsoft.NETFramework.ReferenceAssemblies](https://github.com/Microsoft/dotnet) from 1.0.0 to 1.0.2.
- [Release notes](https://github.com/Microsoft/dotnet/releases)
- [Commits](https://github.com/Microsoft/dotnet/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 08:41:21 -03:00
Sean Killeen
57fe2ce193 Add repository topics support (#2246) 2021-02-25 10:40:25 -04:00
Kato Stølen
4fbbe4ca2c Add cancellation token support for release assets uploading (#2267) 2021-02-21 17:08:30 -04:00
Brendan Forster
d02a230172 some tidy up before cutting the release (#2201) 2020-06-07 18:25:51 -03:00
Martin Alex Philip Dawson
8d3e7b3c2c add support for organization web hooks (#1884) 2020-06-07 16:53:20 -03:00
Cédric Luthi
69d118230d Add support to get raw file content as byte[] (#2151) 2020-04-12 13:22:35 -03:00
dependabot-preview[bot]
68ea578484 Bump System.Reactive from 4.3.2 to 4.4.1 (#2168)
Bumps [System.Reactive](https://github.com/dotnet/reactive) from 4.3.2 to 4.4.1.
- [Release notes](https://github.com/dotnet/reactive/releases)
- [Commits](https://github.com/dotnet/reactive/compare/rxnet-v4.3.2...rxnet-v4.4.1)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-03 09:33:08 -03:00
Brendan Forster
327020750f add convention test for preview APIs (#2154) 2020-03-18 08:52:50 -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
43d1b8b60d remove deprecated code for old Check Suites API (#2130) 2020-03-05 09:14:11 -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
Maxim Lobanov
fe6639f270 Add ProjectCard property to Issue Events model (#2102) 2020-02-24 10:56:52 -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
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
Brendan Forster
d8e6008b1a upgrade sourcelink tools (#2065) 2020-01-27 12:52:58 -04:00
Brendan Forster
8605b8cf76 add .NETFX reference assemblies so that builds can be created without needing Mono for non-Windows platforms (#2064) 2020-01-27 10:57:42 -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
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
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
9e5a76886f Add ability to specify 'since' request parameter to issue comments (#2008)
* Update issue comments client to allow returning comments 'since' a specific date

* Update observable issue comments client to allow returning comments 'since' a specific date

* Add test cases to cover newly added methods
2019-09-21 13:17:14 -03:00
Brendan Forster
ae10ba3cab add netstandard2.0 output (#2006) 2019-09-20 11:07:20 -03:00
Brendan Forster
60e60ca384 generated a net46-compatible binary alongside net45 (#2001) 2019-09-17 09:04:02 -03:00
Brendan Forster
ca95d571ed add license metadata to package outputs (#1998) 2019-09-16 21:35:13 -03:00
dependabot-preview[bot]
d482ce90bf Bump SourceLink.Create.GitHub from 2.8.2 to 2.8.3 (#1992)
Bumps [SourceLink.Create.GitHub](https://github.com/ctaggart/SourceLink) from 2.8.2 to 2.8.3.
- [Release notes](https://github.com/ctaggart/SourceLink/releases)
- [Commits](https://github.com/ctaggart/SourceLink/compare/2.8.2...2.8.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 10:05:30 -03:00
Henrik Andersson
4f0519ee13 Add a warning to the statistics client about caching (#1954)
* Add a warning to the statistics client about caching

* Simplify note about caching and direct users to the API docs

Also update to use summary instead of remarks

* Merge the summary sections as the 2nd section is ignored in VS

* squash duplicate summary tags together

* Also squash these lines
2019-09-16 09:40:12 -03:00
Henrik Andersson
43381c4a53 Pagination support to Reactions Clients (#1948)
* Add pagination to *CommitCommentReactionsClient

* Add unit tests for *CommitCommentReactionsClient

* Add integration tests for *CommitCommentReactionsClient

* Add pagination to *IssueCommentReactionsClient

* Add unit tests for *IssueCommentReactionsClient

* Add integration tests for *IssueCommentReactionsClient

* Add pagination to *IssueReactionsClient

* Add unit tests for *IssueReactionsClient

* Add integration tests for *IssueReactionsClient

* Add pagination to *PullRequestReviewCommentReactionsClient

* Add unit tests for *PullRequestReviewCommentReactionsClient

* Add integration tests for *PullRequestReviewCommentReactionsClient

* Remove rogue using statement and whitespace

* Add null check tests for GetAll with repositoryid overload
2019-02-27 21:29:33 +10:00
Henrik Andersson
33f75ed149 Add pagination support to Migrations client (#1949)
* Add pagination to *MigrationsClient

* Add unit tests for *MigrationsClient

* Add integration tests for *MigrationsClient

* Fix the broken tests
2019-02-24 21:48:55 +10:00
Clemens Lieb
5e751a6c38 Enable building on linux without project file changes (#1930)
* Introduce 'NoFramework' switch

This enables building via cake on linux without requiring adjustments on
other platforms, fixes #1745

* Revert hardcoding NoFramework in build.sh

* Skip GitVersion query for NoFramework build

This implies that NoFramework is intended for local use only
Accordingly a warning message has been set up in the Lifetime of the Build

* Rename NoFramework switch to CoreOnly

* Skip tool installation and formatting step for CoreOnly builds

* Default CoreOnly to false on windows and true otherwise

* Add CoreOnly switch to build variable output

* Fix 'native' msbuild on windows for both platforms

'native' msbuild invocations do not automatically set CoreOnly according to the platform
they are running on. As such we set CoreOnly to False on Windows, unless CoreOnly has been
specified already.
2019-01-31 15:36:30 +10:00
Ryan Gribble
d166a8c142 Implement changes to Checks API for Annotations models and re-request endpoint (#1857)
* Attempt to handle both old and new annotations models so we support the changes on github.com as well as still support GHE2.14
add Path and AnnotationLevel fields
flag Filename and WarningLevel as deprecated/obsolete
also flag BlobHref as deprecated on NewCheckRunAnnotation
Adjust ctors to handle new and legacy field options

* adjust tests to remove use of obsoleted fields

* fix a couple of other tests using unrelated obsoleted fields

* Mark check suite Request method and request object as obsolete

* Add Rerequest() method to normal and observable clients
Add unit and integration tests

* add StartColumn and EndColumn as optional fields for CheckRunAnnotation response and NewCheckRunAnnotation request

* remove integration tests for Request() method as they no longer work on github.com anyway
2018-09-03 20:52:03 +10:00