Commit Graph

66 Commits

Author SHA1 Message Date
Chris Simpson
f317f9dadc Support for IsTemplate and Create Template from Repository (#2331) 2022-06-30 15:20:45 -05:00
Sean Killeen
57fe2ce193 Add repository topics support (#2246) 2021-02-25 10:40:25 -04: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
William Quelho Ferreira
74dc51a6f5 [WIP] Fixes #1718 Implement Repository Transfer functionality (#1813)
* Add "transfer repository" accept header

* Create RepositoryTransfer class

This will be used to send the POST request to initiate the transfer.

* Create Ensure method to check for empty or null arrays

* Change arg name in Ensure for nonempty arrays

array -> value

* Add xmldoc for ArgumentNotNullOrEmptyArray

* Create Transfer method in IRepositoriesClient

* Implement Transfer method in RepositoriesClient

* Fix typo in xmldoc for Transfer

* Add <returns> to Transfer xmldoc

* Create Transfer method in IObservableRepositoriesClient

* Implement Transfer in ObservableRepositoriesClient

* Add DebuggerDIsplayAttribute do RepositoryTransfer

* Add unit tests for RepositoryTransfer constructors

* Change TeamId property type to IReadOnlyList<int>

* Rewrite DebuggerDisplay property into something more succint

* Make new Ensure method into an IEnumerable<T> checker

* Add XmlDoc to RepositoryTransfer

* Tweaks to first ctor XmlDoc

* Create basic unit tests for Transfer

* Create ApiUrls.RepositoryTransfer

* Use ApiUrls.RepositoryTransfer to get URI in Transfer

Previous implementation used wrong URI

* Start implementing RepositoriesClientTests.TheTransferMethod

* Implement org -> user transfer integration test

* Implement user -> org transfer integration test

* [WIP] Implement user -> org transfer with teams

Implementation doesn't work, API usage seems correct.

* Mark transfer user -> org w/ teams integration test with FIXME

* Add second end point URI to ApiUrls

* Add other Transfer overload to RepositoriesClient for other end point

* Create unit tests for other Transfer endpoint

* Add overload to IRepositoriesClient

* Add integration tests for overload

* Reorganize unit tests for TheTransferMethod

* Rename id to repositoryId

* Reorganize unit tests for RepositoriesClientTests.Transfer

* Add second endpoint to IObservableRepositoriesClient

* Add XmlDoc to second Transfer endpoint

* Add XmlDoc to second Transfer endpoint in RepositoriesClient

* Reimplement "with teams" integration tests using TeamContext

* Rename integration test for consistency

* Add asserts to actual ownership transfer

* Rename RepositoryTransfer.TeamId property to TeamIds

* Add awaiit to ThrowsAsync in RepositoriesClientTests

* Put await in right places for unit tests

* Add Ensures for Transfer method in RepositoriesClient

* Add XmlDoc to ApiUrls.RepositoryTransfer with repo id

* Update XmlDoc for RepositoryTransfer constructor and teamIds property

* Rename currentOwner to owner

* Add Ensure guards to ObservableRepositoriesClient.Transfer methods

* Add unit tests for ObservableRepositoriesClient
2018-06-24 22:33:33 +10:00
Jozef Izso
270356b5b4 Fixes #1586 - Repository license API (#1630)
* Implement GetLicenseContents() method for getting repository's license info

* Request License Preview API for calls that return Repository object.

* Add missing accept headers to observable methods for ObservableRepositoriesClients

* fix impacted unit tests
2018-01-19 19:43:46 +10:00
Martin Scholz
329ef960ed [WIP] Add new Project API Preview (#1480)
Add Projects API client (preview)
2017-07-23 08:18:34 +10:00
Ryan Gribble
b7ad64d92f Remove obsolete members (#1622)
* remove obsolete "Branches" methods from RepositoryClient (all were previuosly moved to RepositoryBranchesClient)

* Remove obsolete DeploymentStatus fields

* Remove obsoleteMergePullRequest.Squash parameter

* Remove obsolete request ctor

* Remove tests

* Not sure how I missed these test references
2017-06-27 08:50:31 +10:00
Ryan Gribble
98dfd77142 Remove the obsolete branch protection methods and classes as they are now no longer supported (#1620) 2017-06-26 22:10:17 +10:00
Martin Scholz
a57fb1278d [WIP] Add repository traffic preview (#1457)
* Add response models

* Supress message

* correct spelling Timestamp

* implement traffic client

* add reactive client

* [WIP] unit tests

* add argument check

* finish unit tests

* add integration tests

* Change repositoryId from int to long
Remove GetAll naming of endpoints and add to PaginationTest exclusions
Rename View and Clone classes to be more specific
Add handling of TimeStamp fields being UtcUnix time
Add integration tests for repositoryId methods
2016-09-29 01:16:58 +10:00
Andreia Gaita
9e958bf998 Make Repository Id a long, it's going to grow... 2016-09-15 02:15:11 +02:00
Ryan Gribble
e6bf4635e9 rework obsolete warnings to collect a few places previuosly missed and reword to direct users to the new equivalent branch protection methods 2016-08-30 20:43:01 +10:00
Ryan Gribble
ef0da2f84d Create RepositoryBranchesClient (#1437)
* Tidy up location of existing EditBranch tests

* Create RepositoryBranchesClient and move the GetBranch GetAllBranches and EditBranch methods to it, obsoleting the old ones

* Add tests for the new RepositoryBranchesClient (keeping old tests for RepositoriesClient around for now)

* Disable obsolete warning on reactive client temporarily

* Create observable repository branches client and move GetBranch, GetAllBranches, EditBranch methods to it, obsoleting the old ones

* Add tests for observable repository branches client, leave old tests in place for now

* Fix projects...

* Fix whitespace
2016-08-08 22:00:37 +10:00
Martin Scholz
89500f4b8a Repository invitations changes (#1410)
* add invitations accept header

* create class RepositoryInvitation

* add repository invitations client

* add api urls for invitations

* [WIP]

* add methods to repository invitations client

* add invite method to repo collaborators client

need to add some new overload to post method in apiconnection

* some changes

* add observable client

* add dependings

* add missing observable client

* add missing xml params

* check client

* change repository invitation model

* [WIP] tests

* [WIP] tests; fix overloads for client

* change GetAllForCurrent; suppress message

* some more tests

* [WIP]

* [WIP]

* add collaborator request model

* change return types

change return types for invitation methods. add permission attribute for
repository collaborators invite method.

* add some more tests

* fix xml doc

* check for null arguments

* fix tests

* some fixes from @ryangribble

* add parameterless constructor for RepositoryInvitation

* change setter

* change constructor

* fix merge conflicts

* [WIP] RepositoryInvitationsClientTests

* fix api url xml

* change collaborator request constructor

* change unit tests for collaborator request

* change repocollaboratorsclient

change overloads for add in invite methods to set permissions

* [WIP] integration tests

* add methods for interface

* NotFoundExceptions

* add overload for invite method

* rename repo property

* gramar

* overloads for observable repo collaborators client

* change integration tests

* new integration tests

* add decline test

* add test for accept invitation
2016-07-23 18:50:22 +10:00
Ryan Gribble
ba127b21a8 Mark existing BranchProtection classes/properties and RepositoriesClient.EditBranch() method obsolete, due to breaking changes in the API preview period 2016-07-22 07:22:29 +10:00
aedampir@gmail.com
39340b53b7 merge 2016-07-17 21:35:22 +07:00
aedampir@gmail.com
44b0f4039d ID -> Id 2016-07-17 16:29:32 +07:00
Ryan Gribble
0021269d70 Remove obsolete items - RepositoriesClient
- CommitStatus
- RepoCollaborators
- Commits
- RepositoryComments
2016-07-16 22:46:40 +10:00
aedampir@gmail.com
5bf15392fa fixed convention tests 2016-06-18 00:46:33 +07:00
aedampir@gmail.com
91a1cad17e fixed errors in tests 2016-06-17 19:07:49 +07:00
aedampir@gmail.com
b16ef25f38 added new overloads 2016-06-17 15:46:28 +07:00
Brendan Forster
7e8552dae8 Add ApiOptions overloads to I(Observable)RepositoriesClient (#1337) 2016-06-14 10:15:05 +10:00
aedampir@gmail.com
570d70ab31 IObservableRepositoriesClient and ObservableRepositoriesClient fixes. 2016-03-29 17:39:31 +07:00
Devesh Khandelwal
71e7cc2055 Correct spelling: docmentation -> documentation 2016-03-22 12:34:19 +05:30
Brendan Forster
6bedf1ee9b just a bit of code cleanup 2016-02-02 10:01:16 +10:30
Mordechai Zuber
3003fb3e60 Add IObservable + impl 2016-01-20 12:45:18 +02:00
Robert Pethick
29f31e34bc Update ObservableGitHubClient and ObservableRepositoriesClient to match 2016-01-04 17:37:09 +00:00
Mordechai Zuber
b1917364cc Fixes #1035
Replaces #1042
2016-01-03 12:00:36 +02:00
Phil Haack
101692fb7c Merge pull request #1043 from RobPethick/dev-UpdateCommitStatusToStatus
Update CommitStatus to Status on RepositoriesClient and ObservableRep…
2016-01-02 14:56:33 -08:00
Brendan Forster
d15f677fd3 Merge pull request #1044 from M-Zuber/IRepositoriesClient.RepositoryComments_Deplurize
IRepositoriesClient.RepositoryComments -> IRepositoriesClient.Comment
2015-12-24 10:19:00 +10:30
Mordechai Zuber
18fd10c53f IRepositoriesClient.RepositoryComments -> IRepositoriesClient.Comment
Fixes #1031
2015-12-23 19:00:48 +02:00
Robert Pethick
857aa06bf0 Update CommitStatus to Status on RepositoriesClient and ObservableRepositoriesClient 2015-12-23 16:34:29 +00:00
Mordechai Zuber
10c3b2ad5f IRepositoriesClient.RepoCollaborators -> IRepositoriesClient.Collaborator 2015-12-23 18:29:18 +02:00
Ryan Gribble
7033108634 Add EditBranch() to Octokit.Reactive 2015-12-19 19:58:06 +10:00
Brendan Forster
80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
Kristian Hald
336c448919 Merge remote-tracking branch 'origin/master' into pr-495ext
Conflicts:
	Octokit/Octokit-MonoAndroid.csproj
	Octokit/Octokit-Monotouch.csproj
2015-04-21 00:50:08 +02:00
Kristian Hald
7a69fa685e Removed unnecessary usings 2015-04-20 21:22:34 +02:00
Henrik Andersson
01665bce78 Add 'since` parameter for public repositories 2015-03-23 23:22:47 +10:00
Kristian Hald
9ab0e33bdc Merge branch 'master' into pr-495ext
Conflicts:
	Octokit/Octokit-Mono.csproj
	Octokit/Octokit-MonoAndroid.csproj
	Octokit/Octokit-Monotouch.csproj
	Octokit/Octokit-Portable.csproj
	Octokit/Octokit-netcore45.csproj
2015-03-22 17:18:22 +01:00
Kristian Hellang
def374d253 Nuke GetReadme and GetReadmeHtml 🔥
Closes #750
2015-03-18 21:30:36 +01:00
Kristian Hald
7abdcf9240 Merge remote-tracking branch 'johnduhart/pr-313' into pr-495ext
Conflicts:
	Octokit.Reactive/Clients/IObservableRepositoriesClient.cs
	Octokit.Reactive/Clients/ObservableRepositoriesClient.cs
	Octokit.Reactive/Octokit.Reactive-Mono.csproj
	Octokit.Reactive/Octokit.Reactive-MonoAndroid.csproj
	Octokit.Reactive/Octokit.Reactive-Monotouch.csproj
	Octokit.Tests/OctoKit.Tests-NetCore45.csproj
	Octokit/Helpers/ApiUrls.cs
	Octokit/Octokit-Mono.csproj
	Octokit/Octokit-Monotouch.csproj
	Octokit/Octokit-Portable.csproj
	Octokit/Octokit-netcore45.csproj
2015-03-14 12:19:26 +01:00
Brendan Forster
96f58e341d ported behaviour over to reactive client 2015-03-06 09:44:50 +09:30
rms81
20dae37e72 Add GetAllPublic to Octokit.Reactive 2015-02-01 20:37:16 +00:00
Lars Tabro Sørensen
7a6b988f8a Fixed broken conventions. Wrote a integrationstests that performs an actual merge between two branches. 2015-01-31 23:15:26 +01:00
Haacked
096eba6d59 Correct the obsolete message 2015-01-02 01:14:21 -08:00
Kristian Hellang
bed18b9980 Moved GetReadme and GetReadmeHtml to Contents 2015-01-02 01:08:25 -08:00
Gabriel Weyer
9f4df781c6 Ported changes for GetAllContributors from IRepositoriesClient to IObservableRepositoriesClient 2014-12-13 12:11:34 +11:00
Henrik Andersson
986dae1d56 Fix overzealous use of whitespace 2014-07-03 04:26:21 +10:00
Henrik Andersson
1b14774e17 Fix issues found in convention tests 2014-07-03 03:14:26 +10:00
John Du Hart
7b9b06f495 Cleaned up interfaces and implementetation so convention tests pass 2014-05-19 22:47:52 -04:00
John Du Hart
df0ade43ea Merge https://github.com/AndyCross/octokit.net into pr-313
Conflicts:
	Octokit.Reactive/Clients/IObservableRepositoriesClient.cs
	Octokit.Reactive/Clients/ObservableRepositoriesClient.cs
	Octokit.Reactive/Octokit.Reactive-Mono.csproj
	Octokit.Reactive/Octokit.Reactive-MonoAndroid.csproj
	Octokit.Reactive/Octokit.Reactive-Monotouch.csproj
	Octokit.Reactive/Octokit.Reactive.csproj
	Octokit/Octokit-Mono.csproj
	Octokit/Octokit-Monotouch.csproj
	Octokit/Octokit-netcore45.csproj
	Octokit/Octokit.csproj
2014-05-19 19:59:06 -04:00