996 Commits

Author SHA1 Message Date
malamour-work
195de689ff Added a get all organizations method (#1469)
* Update IOrganizationsClient.cs

* Added the Uri for the organizations

Renamed the existing organizations uri to userOrganizations and created a new organizations uri.

* Implementation of the GetAllOrganizations

* Interface modification for the GetAllOrganizations

* Implementation of the GetAllOrganizations

* Created the tests for the two new methods

* remove new line

* Reverted the changes i did to the ApiUrls class to be backward compatible.
Created new client method and marked the old one [Obsolete] to be removed in a futur release.
Created a new request class to support the since attribute.
Updated the Unit Tests
Updated all the csproj to have the proper references.

* Renamed test

* Deprecated the Organizations method to be replaced by the new UserOrganizations method.

* Created 2 new test for the getAll method.
Renamed the existing one to make it clear they test the user organization.

* tweaks to integration tests
2016-11-21 23:54:27 +10:00
Stanley Goldman
80615e5a92 Correcting return type in ObservableEventsClient 2016-10-16 10:52:00 -04: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
Martin Scholz
93ae832311 [WIP] Protected branches updates - granular methods (#1443)
* Add get method for required status checks

* Add api urls for required status checks

* change name of apir url for required status checks

* fix xml comment

* add update method for required status checks

* add delete method for required status checks

* fix api url

* fix xml comment

* add api url for required status cehcks contexts

* add get method for required status checks contexts

* add replace method for required status checks contexts

* add add method for required status checks contexts

* add new overload for delete method

* add delete method for required status checks contexts; fix overloads for delete

* add api url for restrictions

* add get method for restrictions

* add delete method for restrictions

* add api url for teams restrictions

* add get method for team restrictions; fix delete method restrictions

* fix overhead for get team restrictions

* fix httpmethod for update required status checks

* add set method for team restrictions

* add add method for team restrictions

* add delete method for team restrictions

* add api url for user restrictions

* add get method for user restrictions

* add set method for user restrictions

* add add method for user restrictions

* add delete method for user restrictions

* Add unit test; fix api urls

* Add ExcludeFromTest class

* add exclude attribute to methods

* Add attribute usage

* Add parameter to interface

* add observable unit tests

* rename excludefromtest

exclude all the tests for the new api endpoints because they broke the
pagination and syncobsverable tests.

* rename excludefromattribute

* refactor observable methods

* [WIP] Add integration tests

* finish integration test

* fix renamed branch protection restrictions

* add team and user collections

* rename set to update

* rename test methods

* optimize integration tests

* made some tidy ups
- fixup comment wording Edit => Replace
- remove spurious characters from description
- remove un-needed exclude attributes

* remove ForOrgRepo tests

* remove unused org contexts

* dispose contexts

* remove obsolete GetRedirect

* add clarifying comment to restriction methods
2016-09-21 07:16:51 +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
f3d7429289 Remove previously obsoleted ObservableMiscellaneousClient ctor 2016-09-06 23:16:03 +10:00
Ryan Gribble
6042a12983 Remove previously obsoleted UsersClient.Keys property 2016-09-06 23:12:52 +10: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
7bc44d4119 Tidy up a few Xml comments 2016-08-10 15:58:57 +10:00
Ryan Gribble
998af893f5 Implement Get Update and Delete BranchProtection methods in ObservableRepositoryBranchesClient
Add unit tests for Observable methods
2016-08-10 15:30:15 +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
Henrik Andersson
23d9310133 Implement Issue Timeline preview API (#1435)
* Implement Issue Timeline preview API

* Add DebuggerDisplay to response models

* Rename method

* Add Observable Issue Timeline client

* Add that missing property thing

* Add teh comments

* Added unit tests

* Fix method names

* Add missing event type enum and API preview accept header

* Add integration tests for async client

* Pass in API preview header

* Add observable integration tests

* Unbreak the broken tests...

* Remove unnecessary usings

* Add missing events

* Fix API URLs

* Add overloads for using repository Id instead of owner/repo and paging

* Add tests for repository id overloads

* Add paging tests

* I'm clearly a bit rusty about this test thing here...

* Missed a check for null argument

* Added missing XMLDocs
2016-08-08 07:51:07 +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
Brendan Forster
bc1967b98f Merge pull request #1423 from dampir/fix1409
Ensure "Id" is used in all code comments, instead of ID or id
2016-07-21 12:15:16 -07:00
Brendan Forster
f7a4bac040 Merge pull request #1421 from dampir/fix1416
GitHub Pages Preview API Enhancements
2016-07-17 07:59:20 -07: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
aedampir@gmail.com
b6cca1082e ID to Id in comments 2016-07-17 16:09:46 +07:00
Ryan Gribble
9d8e8ae8af Remove obsolete items - SshKey
- SshKeysClient
- SshKey
- SshKeyInfo
- SshKeyUpdate
2016-07-16 22:46:42 +10:00
Ryan Gribble
2cc2ccda62 Remove obsolete items - GitHubClient
- Release
- Notification
- GitDatabase
2016-07-16 22:46:41 +10:00
Ryan Gribble
0021269d70 Remove obsolete items - RepositoriesClient
- CommitStatus
- RepoCollaborators
- Commits
- RepositoryComments
2016-07-16 22:46:40 +10:00
Ryan Gribble
016e25b693 Remove obsolete items - AuthorizationClient
- RevokeAllApplicationAuthentications()
2016-07-16 22:46:38 +10:00
Brendan Forster
c25ba887b8 Merge pull request #1360 from dampir/add-repo-id-commit-status-client
Add repositoryId overloads to methods on I(Observable)CommitStatusClient
2016-07-14 08:32:21 -07:00
Brendan Forster
b07ce6e11a Merge pull request #1356 from dampir/add-repo-id-repo-forks-client
Add repositoryId overloads to methods on I(Observable)RepositoryForksClient
2016-07-14 08:32:11 -07:00
aedampir@gmail.com
41c663f6af added new overloads 2016-07-14 20:49:42 +07:00
aedampir@gmail.com
d0dc6dbd92 added new null checks 2016-07-14 10:16:50 +07:00
Brendan Forster
6f3c8c4314 Merge pull request #1357 from dampir/add-repo-id-repo-pages-client
Add repositoryId overloads to methods on I(Observable)RepositoryPagesClient
2016-07-12 11:14:06 -07:00
Brendan Forster
fde368256d Merge pull request #1362 from dampir/add-repo-id-blobs-client
Add repositoryId overloads to methods on I(Observable)BlobsClient
2016-07-12 11:14:01 -07:00
Brendan Forster
57fb2ef8f4 Merge pull request #1363 from dampir/add-repo-id-tags-client
Add repositoryId overloads to methods on I(Observable)TagsClient
2016-07-12 11:13:54 -07:00
aedampir@gmail.com
da5045ca94 removed <returns> tags 2016-07-12 09:15:43 +07:00
Alexander Efremov
f9d4616de0 cleared <returns> tags 2016-07-12 09:08:16 +07:00
aedampir@gmail.com
254ad67bd4 added new overloads 2016-07-12 09:06:20 +07:00
aedampir@gmail.com
11dd7e5869 modified XML docs 2016-07-12 09:06:18 +07:00
aedampir@gmail.com
245e2ef8a5 removed <returns> tags 2016-07-12 09:04:40 +07:00
aedampir@gmail.com
23fe19a9f4 removed <returns> tags 2016-07-12 09:01:46 +07:00
aedampir@gmail.com
f077183a77 removed <retuns> tags 2016-07-12 08:59:45 +07:00
aedampir@gmail.com
ccf144ae74 removed <returns> tags 2016-07-12 08:58:08 +07:00
Martin Scholz
72e30a7f90 Add reactions to issue, commit comment and review payload (#1405)
* add reactions to issue response payload

* add reactions to commit comment payload

* add reactions to review comment payload

* create tests for issue client

* tests for commitcomment client

* tests for pull request review comment

* change observable tests

* simplify strings

* remove unnecessary clients

* change integration tests to retrieve all reaction types

* create integration test for issue comment client

* fix merge conflicts

* fix merge conflicts

* gets tests passing again

* fix some reaction integration tests

* Fixup unit tests wth preview accepts header
Also applied preview header to a couple of repositoryId based calls that were added by another PR

* Fixup unit tests wth preview accepts header
Also applied preview header to a couple of repositoryId based calls that were added by another PR

* Rework reaction payload tests for IssueComments to handle Get, GetAllForIssue and GetAllForRepository calls

* [WIP] reaction payload tests

* Rework reaction payload tests for IssueComments to handle Get, GetAllForIssue and GetAllForRepository calls

* Rework reaction payload tests for Issues client

* Rework reaction payload tests for PullRequestReviews client

* Rework reaction payload tests for CommitComments client

* Revert "[WIP] reaction payload tests"

This reverts commit a6179b0f21a3ddfe36bfd3ae5eafae0e69b52252.
2016-07-08 20:29:08 +10:00
Brendan Forster
3e18580de2 Merge pull request #1379 from dampir/add-repo-id-issue-comments-client
Add repositoryId overloads to methods on I(Observable)IssueCommentsClient
2016-07-07 13:47:22 +10:00
Brendan Forster
7453899b51 Merge pull request #1380 from dampir/add-repo-id-issues-client
Add repositoryId overloads to methods on I(Observable)IssuesClient
2016-07-07 10:26:33 +10:00
Brendan Forster
a25e537f3b Merge pull request #1369 from dampir/add-repo-id-tree-client
Add repositoryId overloads to methods on I(Observable)TreesClient
2016-07-07 10:19:47 +10:00
Brendan Forster
6f22b7197a Merge pull request #1371 from dampir/add-repo-id-statistics-client
Add repositoryId overloads to methods on I(Observable)StatisticsClient
2016-07-07 10:09:53 +10:00
aedampir@gmail.com
d1c89b1ffa removed <returns> tags 2016-07-07 03:33:00 +07:00
aedampir@gmail.com
c9de835d92 removed returns tags 2016-07-07 03:22:02 +07:00
aedampir@gmail.com
5a57ab3808 added some null guards 2016-07-07 03:20:53 +07:00
aedampir@gmail.com
36c20079a7 removed <retuns> tags 2016-07-07 03:10:31 +07:00
aedampir@gmail.com
20df7ed711 removed <retunrs> tags 2016-07-07 03:08:54 +07:00
aedampir@gmail.com
91073ec127 removed <retuns> tags 2016-07-07 03:06:29 +07:00
Brendan Forster
51d2167491 Merge pull request #1382 from dampir/add-repo-id-commit-comment-reactions-client
Add repositoryId overloads to methods on I(Observable)CommitCommentReactionsClient
2016-07-06 11:39:12 +10:00