Commit Graph

4716 Commits

Author SHA1 Message Date
Stanley Goldman
f70c402d78 Generate code coverage output with coverlet (#1866)
* add support for Codecov reporting on Windows
2019-09-17 09:49:44 -03:00
Brendan Forster
60e60ca384 generated a net46-compatible binary alongside net45 (#2001) 2019-09-17 09:04:02 -03:00
dependabot-preview[bot]
539a609a40 Bump xunit.runner.visualstudio from 2.3.0-beta4-build3742 to 2.4.1 (#1999)
Bumps [xunit.runner.visualstudio](https://github.com/xunit/xunit) from 2.3.0-beta4-build3742 to 2.4.1.
- [Release notes](https://github.com/xunit/xunit/releases)
- [Commits](https://github.com/xunit/xunit/commits/2.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-17 08:33:49 -03:00
dependabot-preview[bot]
52080085a8 Bump Microsoft.NET.Test.Sdk from 15.0.0 to 16.2.0 (#2000)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 15.0.0 to 16.2.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v15.0.0...v16.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-17 08:25:07 -03:00
Brendan Forster
ca95d571ed add license metadata to package outputs (#1998) v0.34.0 2019-09-16 21:35:13 -03:00
Brendan Forster
45bc5eced7 autofix tests based on feedback from xunit analyzers (#1997) 2019-09-16 19:46:40 -03:00
dependabot-preview[bot]
61bd1d1018 Bump NSubstitute from 3.1.0 to 4.2.1 (#1993)
* Bump NSubstitute from 3.1.0 to 4.2.1

Bumps NSubstitute from 3.1.0 to 4.2.1.

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

* fix failing tests
2019-09-16 19:12:56 -03:00
dependabot-preview[bot]
c23652a347 Bump GitHubJwt from 0.0.2 to 0.0.3 (#1991)
Bumps [GitHubJwt](https://github.com/adriangodong/githubjwt) from 0.0.2 to 0.0.3.
- [Release notes](https://github.com/adriangodong/githubjwt/releases)
- [Commits](https://github.com/adriangodong/githubjwt/compare/0.0.2...0.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 14:07:16 -03:00
Brendan Forster
785dcdfa18 update agents to use non-EOL version of Ubuntu and .NET core 2.2 (#1996) 2019-09-16 13:47:37 -03:00
Brendan Forster
6433b9123e fix timezone offset handling (#1988)
* port tests to use DateTimeOffset

* drop the whitespace when emitting DateTimeOffset values

* tidy up stale regions
2019-09-16 10:27:27 -03:00
dependabot-preview[bot]
ef7fe2680e Bump xunit from 2.2.0 to 2.4.1 (#1995)
Bumps [xunit](https://github.com/xunit/xunit) from 2.2.0 to 2.4.1.
- [Release notes](https://github.com/xunit/xunit/releases)
- [Commits](https://github.com/xunit/xunit/compare/2.2...2.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-16 10:06:20 -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
Jan Klass
1f01b22de5 Fix typo (#1985) v0.33.0 2019-09-04 08:41:13 -03:00
Mattias Karlsson
01d5c8721c (build) Updated Cake.Frosting to version 0.34.1 (#1978)
* (build) Updated Cake.Frosting to version 0.34.1

* Update GritVersion from 3.6.2 to 5.0.0
2019-08-01 11:10:32 -03:00
Greg Ingram
8fcb731343 Update README.md (#1971)
Fixed spelling
2019-07-22 14:34:50 -03:00
Ryan Gribble
9f005c438e add SubmittedAt field to PullRequestReview (#1964) 2019-06-17 07:26:06 +10:00
Ben McMorran
70fe726954 Correctly support language filter in repo search (#1951)
* Correctly support language filter in repo search

* Fix failing client test

* Use the correct language code for C++
2019-04-01 13:55:07 +10:00
Patrick
d16ac98d00 DateRange does not include time #1904 (#1905)
* DateRange does not include time #1904

* DateRange does not include time #1904

* DateRange does not include time #1904

* DateRange does not include time #1904

* DateRange does not include time #1904

* Requested changed by ryangribble

* Update to Obselete Attribute messages

#1904 #1905
2019-03-19 21:03:14 +10:00
Henrik Andersson
8ff9163c99 Updated link to the ScriptCs.Octokit repo (#1953) 2019-03-10 19:25:54 +10:00
Ryan Gribble
6385e2dcbd Don't apply Tls1.2 workaround when .NET 4.7 SystemDefault is set (#1936)
* Dont touch SecurityProtocol if current value is new SystemDefault added in .NET 4.7
Add comment to explain what we are doing

* Update Octokit/Http/HttpClientAdapter.cs

Co-Authored-By: ryangribble <ryangribble@users.noreply.github.com>

* Update Octokit/Http/HttpClientAdapter.cs

Co-Authored-By: ryangribble <ryangribble@users.noreply.github.com>

* Update Octokit/Http/HttpClientAdapter.cs

Co-Authored-By: ryangribble <ryangribble@users.noreply.github.com>

* Update Octokit/Http/HttpClientAdapter.cs

Co-Authored-By: ryangribble <ryangribble@users.noreply.github.com>
2019-02-27 21:30:42 +10: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
Abhijeet
153250fbcd adding example for creating PR from fork (#1944)
* adding example for creating PR from fork

* addressing pr feedback
2019-02-24 21:30:57 +10:00
Nikita Potapenko
0cbc716b84 Add Id field to Label model (#1946) 2019-02-24 21:29:03 +10:00
Matt Richardson
3147ddd694 Handle event ids greater than int32.maxvalue (#1940)
Fixes https://github.com/octokit/octokit.net/issues/1939
2019-02-19 21:16:30 +10:00
Guillaume Mouron
47c38bfd8e Add support for CreateEventPayload and DeleteEvent payload (#1646) (#1932) 2019-01-31 20:37:00 +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
8cd893d6d4 add Slug field to Team response model (#1913) 2019-01-30 21:40:27 +10:00
Ryan Gribble
cf442499ff add RequiredApprovingReview preview functionality to branch protection calls (#1912) 2019-01-30 21:20:50 +10:00
Patrik Svensson
64cecbb264 Adds missing OAuth login request parameters (#1919)
* Adds support for 'login' parameter
* Adds support for 'allow_signup' parameter

Closes #1918
2019-01-30 21:12:39 +10:00
Oliver Neal
3e29e0c053 add labels to pull request (#1926) 2019-01-30 21:10:29 +10:00
Brian Chavez
3470f45b32 Spellcheck documentation. (#1929) 2019-01-14 08:11:27 -04:00
Chris Burkhart
04e7fce4f1 Update README.md (#1925)
~150 open issues would not be something I'd consider to be 100% bug free. Was this supposed to be a joke?
2019-01-11 07:32:02 -04:00
Brendan Forster
d1528ce57d update docs to include the await keyword (#1924) 2019-01-11 07:31:48 -04:00
Mattias Karlsson
4fb3258911 Update to Cake.Frosting 0.31.0 (#1921) 2018-12-16 13:19:08 +10:00
Mattias Karlsson
4d31536f9a Updated to Cake.Frosting 0.30.0 (#1911) 2018-11-21 22:14:25 +10:00
Ehsan Mirsaeedi
eb9c112c03 Add Author Association for comments related models (#1877)
* Add Author Association for comments related models

* remove optional AuthorAssociation from constructors

* tidy up whitespace/formatting
2018-11-07 22:18:21 +10:00
Stanley Goldman
d34aa8021a Adding badges (#1876) 2018-10-24 08:13:41 -04:00
Sébastien Ros
2cdc2679b1 Fixing sample (#1879) 2018-10-02 17:43:40 +10:00
Brendan Forster
5a9e78ad6d Merge pull request #1872 from richlander/patch-1
Updating to more recent repo names
2018-09-24 12:07:46 -03:00
Rich Lander
2cb1821295 Updating to more recent repo names 2018-09-24 10:22:29 -04:00
Ryan Gribble
050b85b83d Release v0.32 - App-stravaganza! (#1864)
* generate release notes

* fix failing test

* fix repository hooks tests (seems like agilezen causes a problem)

* run FormatCode build task

* update release notes to include issue labels fix

* fix release date
v0.32.0
2018-09-09 10:24:22 +10:00
Ryan Gribble
cee6635861 provide a Delete<T>() overload that takes a Uri and accept header, but no body (#1868) 2018-09-09 09:59:31 +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
Stanley Goldman
5f1421bd34 Additional GitHub Apps APIs (#1854)
* Adding functionality to query installations for user

* Rename method

* Adding installation methods

* Adding tests

* Adding observable client methods

* Adding InstallationResponse

* Adding GitHub Apps Installations Client

* Tweaking doc comments

* Undoing unintentional changes and cleaning up

* Reordering functions in clients to keep the same code look and feel

* Making sure all methods are documented with their authentication requirements

* Syntax error

* Renaming methods and tests

* Renaming property

* Test cleanup

* XmlDoc comment fixups and consistency

* rename User -To-Server auth methods from xxxForUser to xxxForCurrentUser

* rename GitHubAppsInstallationsClient to GitHubAppInstallationsClient to be consistent with single/plural naming conventions

* make method order match the order on github docs site

* tidy up usings

* correct implementation of GetALlInstallationsForCurrent method to be consistent

* Add missing unit and integration tests for ObservableGitHubAppsClient

* fix renamed method in observable tests

* Add EnsuresNonEmptyArguments tests and fixup asserts in GitHubAppsClient

* Add tests for new Observable client methods and fixup Null/Empty asserts in Observable client

* change non paginated call to call through to other method but with ApiOptions.None

* add unit tests for observable client and fixup errors they found

* add integration tests for new GitHubAppsClient methods, fixed an incorrect route that the tests found!

* add integration tests for extra methods on observable client

* add integration tests for new clients GitHubAppInstallationsClient and ObservableGitHubAppInstallationsClient

* deprecate renamed method properly, to avoid breaking change
2018-09-03 20:36:33 +10:00
Ryan Gribble
ac86133f18 Implement renaming and deprecation of GitHub App Installation Access Token route (#1860)
* change existing CreateInstallationToken method to use new /app/installations route, and provide an obsolete CreateInstallationTokenPreview() method still using the old route, in order to support GHE 2.14

* suppress obsolete usage warning in tests

* add unit test for new method

* add new method to observable client

* fix routes in tests

* remove CreateInstallationTokenPreview() as it isnt actually required
2018-09-03 20:05:36 +10:00
d-a-s
90b0a7c551 appClient - all GitHubApps methods inside subclass (#1853)
In implementing this, I found that `appClient.GetCurrent()` (etc.) don't work, but that there is a subclass, so that `appClient.GitHubApps.GetCurrent()` etc does work. Took me a while to figure it out, thought that updated docs might help others.
2018-07-29 11:47:26 +10:00
Jordan Brown
08853d21d8 Fixes check runs taking over 2017 years to complete (#1852)
* Fixes check runs taking over 2017 years to complete

* Make StartedAt and Status fields nullable, since they dont have to be provided on new or update requests
2018-07-25 20:07:59 +10:00
Ryan Gribble
101522070d Release v0.31 - Check yo' self! (#1851)
* Fix whitespace/formatting with /FormatCode build option

* Update release notes

* fix a few failing integration tests

* Adjust required fields on UpdateCheckRun and NewCheckRun request models and fix tests
Tidy up field accessors and XmlDoc comments

* Update date in ReleaseNotes

* Keeping request models simple (avoid inheritance) - makes it easier when we move to generated models
v0.31.0
2018-07-21 18:12:42 +10:00