Commit Graph

21 Commits

Author SHA1 Message Date
Tom Longhurst
cd1835326b Fix xUnit Warnings (#2906)
* Fix xUnit Warnings

* Fix

* Fix formatting in AsyncPaginationExtensionGenerator.cs

---------

Co-authored-by: Keegan Campbell <me@kfcampbell.com>
2024-04-15 13:19:26 -07:00
notauserx
595e35d641 add active lock reason to PR (#2543)
* add active lock reason to PR

* update docs

* refactor: extract lock and unlock from IIssuesClient
create ILockUnlockClient so both IIssuesClient and IPullRequestClient can
access lock and unlock methods.

* refactor LockUnlock for reactive clients

* Update doc to include lock unlock sample code

* Use Assert.Null to check null value in test

Co-authored-by: notauserx <notauserx@users.noreply.github.com>
2022-08-19 18:36:47 +01:00
Steve Desmond
e9409e0cb5 Update IssueEvent ID field from int to long (#2060) 2020-01-19 18:54:46 -04:00
Mickaël Derriey
73feecefb3 Change response models 'Url' properties from Uri to string (#1585)
* Add convention test to ensure 'Url' properties are of type string

Closes #1582

* Change 'Url' properties from Uri to string

Global Find/Replace FTW!

* fix compilation errors in the integration tests project

* Extend 'Url' properties type check to request models

* Stick to convention tests naming convention

* Remove unused using directives in models

Changing from `Uri` to `string` means the `using System;`
directive was not needed anymore in some files

* Update exception message wording

* empty commit to trigger a new build - hopefully Travis passes

* add convention test to ensure request models have Uri 'Url' properties

* make request models 'Url' properties Uri

fix typo in convention test name

* revert some request models 'Url' properties as `string`

see https://github.com/octokit/octokit.net/pull/1585#issuecomment-297186728

* Change test so that all model types must have 'Url' properties of type string

 - Filter test input to only get types which have 'Url' properties
 - Merge response and request model types tests into one
 - Unparameterize the exception since we only check for the string type now

* Fix string.Format tokens

If this PR doesn't get rebased, it'll be my wall of shame FOREVER!

* and then it's even more embarrassing when the commit message says rebased but you really meant squashed

* Remove exclusion of `Release` from request models
2017-04-30 22:19:39 +10:00
Brendan Forster
f92894010a corrected a couple of tests 2016-10-07 12:42:23 +11:00
aedampir@gmail.com
d68d00913a added fixes in integration tests 2016-06-30 04:32:53 +07:00
Alexander Efremov
449e8cd21a added integration tests 2016-06-13 17:56:28 +07:00
aedampir@gmail.com
521e0295f2 added integration tests 2016-05-25 12:10:36 +07:00
aedampir@gmail.com
336a506200 added integration tests 2016-05-25 01:02:57 +07:00
Gabriel Weyer
84a39c5b5a Added CommitUrl to IssueEvent 2015-12-23 16:29:48 +11:00
Brendan Forster
80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
William Barbosa
847cd1b2c8 Adds common properties to RepositoryContext
A lot of classes use the name and the owner of the repository, so for
consistency I added those as properties of the Context
2015-09-27 00:38:52 -03:00
William Barbosa
42e480c2c0 Refactors a whole bunch of tests 2015-09-26 23:37:54 -03:00
Henrik Andersson
189ae42c3a Update tests 2015-03-24 00:12:54 +10:00
Haacked
a94051d6b0 Repository name is required when creating a repo
I was trying to create a repository and I wasn't sure which parameters
were required. Following our philosophy of exposing required parameters
in the constructor, I change the `NewRepository` object to take in a
repository name and to make that property readonly.
2015-03-19 16:25:03 -07:00
Darren Camp
98bb04bd82 Integration test for issue #738. It reads the waffle.io repo where the issue was reported 2015-03-12 13:29:20 +08:00
Brendan Forster
28e8372922 extract helper method for setting up GitHubClient 2015-01-04 10:03:45 +09:30
Dillon Buchanan
690bb77129 IssueEvent & EventInfo Field/Enum Updates
Fixes #642
2014-12-22 17:33:40 -05:00
Tim Sneed
3909498437 Internalize ProductHeaderValue
What Haacked, PaulBetts, and Shiftkey suggested
2014-02-28 06:33:44 -06:00
Andre Rodrigues
891a353e16 Add disposable 2013-12-06 09:46:28 +00:00
Brendan Forster
6cba426813 let's make the folder structure consistent 2013-11-27 10:17:16 -08:00