Commit Graph

74 Commits

Author SHA1 Message Date
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
3d56bbf87f Merge remote-tracking branch 'upstream/master' into pr-495ext
Conflicts:
	Octokit/Octokit-MonoAndroid.csproj
	Octokit/Octokit-Monotouch.csproj
2015-05-09 12:51:28 +02:00
Brendan Forster
2eb8e562ee avoid using parameters here, just craft the URL by hand 2015-04-23 09:14:06 +09:30
Brendan Forster
c344dfe7c2 Revert "removed GetAllPublic overload due to paging issue and parameters clobbering"
This reverts commit 26a8bf0e81.
2015-04-23 09:09:17 +09:30
Brendan Forster
26a8bf0e81 removed GetAllPublic overload due to paging issue and parameters clobbering 2015-04-22 12:20:42 +09:30
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
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
e91adbafcb Unit tests for observable repo deploy keys client 2014-06-15 10:15:13 +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
Brendan Forster
a1be7fefe7 added proper reactive client 2014-03-08 19:22:12 +11:00
Brendan Forster
e6be0ad334 moved function out to separate client 2014-03-08 19:11:59 +11:00
Brendan Forster
438f7f66a9 added reactive client and tidied up xml-docs 2014-03-08 18:43:54 +11:00
Will Froese
bd4b1bcc17 Updated comments 2014-03-01 12:21:36 -05:00
Will Froese
082658083c Add IObservableRepositoryCommentsClient as well as an implementation 2014-02-28 21:23:52 -05:00
Brendan Forster
5e32c4e0ed blergh everything is terrible 2014-02-20 11:41:06 +11:00