Commit Graph

32 Commits

Author SHA1 Message Date
Ryan Gribble 600c8657e4 Remove method/members previously deprecated (#1780)
* removes obsolete OranizationsClient.GetAll (replaced with GetAllForUser)

* removes obsolete PullRequestsClient.Comment (replaced with ReviewComment)

* removes obsolete TeamsClient.GetMembership (replaced with GetMembershipDetails)
removes obsolete TeamsClient.AddMembership (replaced with AddOrEditMembership)
removes obsolete TeamsClient.AddMembership (replaced with AddOrEditMembership)
removes obsolete TeamMembership response class (replaced with TeamMembershipDetails)

* removes obsolete RepositoryBranchesClient.GetRequiredStatusChecksContexts (replaced with GetAllRequiredStatusChecksContexts)
removes obsolete RepositoryBranchesClient.GetProtectedBranchTeamRestrictions (replaced with GetAllProtectedBranchTeamRestrictions)
removes obsolete RepositoryBranchesClient.GetProtectedBranchUserRestrictions (replaced with GetAllProtectedBranchUserRestrictions)

* removes obsolete RepositoryTrafficClient.GetReferrers (replaced with GetAllReferrers)
removes obsolete RepositoryTrafficClient.GetPaths (replaced with GetAllPaths)

* removes obsolete constructors from BranchProtectionUpdateSettings and UpdateTeam request models

* removes obsolete Assignee property from NewIssue and IssueUpdate request models (replaced with Assignees)
2018-04-22 09:58:06 +10:00
Ryan Gribble c223f5ae9a Tidy up compiler warnings (#1779)
Fix XmlDoc parameter warnings (and tidy up other build output/warnings)
2018-03-07 00:17:52 +10:00
Ryan Gribble e93646c9f1 Implement Nested Teams preview API changes (#1682)
* Add new AcceptsHeader
add Parent field to Team
add ParentId field to NewTeam and UpdateTeam
update Create Edit and Delete Team methods to use preview header

* Implement new API call GetAllChildTeams()

* Implement GetAllChildTeams for ObservableClient

* add integration test for observable client

* Add pagination tests for GetAllChildTeams

* Add NestedTeams preview header to all the API calls that use it

* Update tests for accepts header

* Add accepts header to observable client calls

* Fix DELETE implementation to use correct overload

* Fix tests - parent and child teams must be visibility Closed whereas the default if not specified is Private

* make sure all tests are flagged as [OrganizationTest]

* Make sure Update tests change the parent of the team

* Update new methods with NesterTeams preview API header and adjust tests
2017-10-04 16:21:42 +10:00
Ryan Gribble da0c7a5785 Implement Team Membership changes (#1670)
* Fixup TeamContext helper name

* Implement overload for GetAllMembers to take request parameter

* Update tests

* Implement Obersvable client changes

* Observable tests

* Implement AddOrEditMembership function returning a new response model, and obsolete the old AddMembership function returning an enum

* Implement GetMembershipDetails function returning new TeamMembershipDetails response model, and obsolete the old GetMembership function returning an enum

* Clarify that an exception is thrown when not a member

* Add integration tests for AddOrEditMembership and GetMembershipDetails

* fixup exception test for observable client

* Update wording of obsolete message
2017-09-26 21:37:43 +10:00
Henrik Andersson 7c170213fd List pending organization / team invitations (#1640)
* Add methods for listing pending organization invites

* Add unit/integration tests

* Add methods for getting all pending invites for a team

* Add unit/integration tests

* 🔥 whitespace 🔥

* Move new enum to it's own correct file and location

* Invite(s) -> Invitation(s)

* Add helper functions for adding invitations and cleaning the invitations up at the end of the test

* Add methods with ApiOptions

* Fix helper methods for adding/removing invitations

* Forgot to actually pass in the ApiOptions to the API call

* Add tests for new ApiOptions methods

* tweak integration tests

* Update outside collaborator tests to use [OrganizationTest] attribute for consistency

* Update test accounts used

* use octokitnet-test2 account now it has 2FA turned on
2017-08-14 16:52:53 +10:00
maddin2016 11b1d756cc add new request 2016-06-06 19:25:30 +02:00
maddin2016 41ba208131 add methods to set permission for team repositories 2016-06-06 12:53:06 +02:00
Mordechai Zuber cacd6020f2 🔥 ITeamsClient.IsMember() 2016-04-13 18:26:02 -04:00
Devesh Khandelwal 486e315c02 Add ApiOptions overload to Reactive Teams client. 2016-03-23 14:57:50 +05:30
Brendan Forster dbd48d7a90 added GetAllForCurrent to find teams for the current user 2015-05-22 14:44:25 +09:30
Brendan Forster 4490968126 removed new, but obsolete code 2015-05-22 14:29:11 +09:30
Brendan Forster b9da729177 updated docs 2015-05-22 14:15:55 +09:30
Brendan Forster 27d9a40090 introduce AddMembership endpoint with new behaviour 2015-05-22 14:15:40 +09:30
Brendan Forster 809ecc5630 actually finish implementing the endpoint 2015-05-22 11:51:04 +09:30
Brendan Forster 6408b04c2c obsolete reactive method 2015-05-08 17:44:17 +09:30
Brendan Forster 2be3edbe42 Merge branch 'phantomtypist/331-org-teams' of https://github.com/phantomtypist/octokit.net into phantomtypist-phantomtypist/331-org-teams
Conflicts:
	Octokit.Reactive/Clients/IObservableTeamsClient.cs
	Octokit.Reactive/Clients/ObservableTeamsClient.cs
	Octokit.Tests/Clients/TeamsClientTests.cs
	Octokit/Clients/ITeamsClient.cs
	Octokit/Clients/TeamsClient.cs
	Octokit/Helpers/ApiUrls.cs
2015-05-08 17:29:39 +09:30
Henrik Andersson 2427ab6922 Update observable clients 2015-03-24 00:12:41 +10:00
Andre Rodrigues 24f152d967 Add missing observable methods 2014-08-08 11:31:39 +01:00
Andre Rodrigues 25aa5090f0 Fix small compilation error 2014-08-07 17:44:03 +01:00
Andre Rodrigues df668abcc1 Add observable methods 2014-08-07 17:37:26 +01:00
Jason Kanaris cd8f54272e Added IObservableTeamsClient interface methods
- AddRepository
- RemoveRepository
- IsRepositoryManagedByTeam
2014-07-15 23:37:51 -04:00
Jason Kanaris 7560c03d5b xml-doc exception documentation changes for teams client
- Removed generic ApiException exception from xml-doc on Teams related
client methods.
- Added ApiValidationException exception in xml-doc for AddMember team
client method.
2014-07-11 00:10:31 -04:00
Jason Kanaris b153f76253 Add more methods to teams client
- Added functionality for AddMember, RemoveMember and GetRepositories
- Unit tests missing for now.
2014-07-10 00:05:23 -04:00
unknown 0caa6feffa Merge remote-tracking branch 'upstream/master' into phantomtypist/331-org-teams
Conflicts:
	Octokit.Reactive/Clients/IObservableTeamsClient.cs
	Octokit.Reactive/Clients/ObservableTeamsClient.cs
	Octokit/Clients/ITeamsClient.cs
	Octokit/Clients/TeamsClient.cs
	Octokit/Helpers/ApiUrls.cs
2014-07-09 16:18:49 -04:00
Daniel Cazzulino 120b05b709 Fixed indenting.
Conflicts:
	Octokit.Tests/Clients/TeamsClientTests.cs
2014-04-22 18:38:41 -03:00
Daniel Cazzulino 6660f1be80 Added GetMembers to retrieve all team members. 2014-04-22 18:38:22 -03:00
Daniel Cazzulino e668267e99 Fixed code analysis issue with naming of Get 2014-04-22 18:20:57 -03:00
Daniel Cazzulino 5f136c926e Added missing reactive members. 2014-04-22 18:15:44 -03:00
Daniel Cazzulino 5d735f2786 Remove "Team" suffix from reactive client too. 2014-04-08 09:45:28 -03:00
Jason K. 8b6a05579a - Added Get method to Octokit.Reactive/Clients/IObservableTeamsClient
interface.

- Implemented aforementioned Get method in
Octokit.Reactive/Clients/ObservableTeamsClient class.
2014-02-27 16:53:01 -05:00
Brendan Forster 164393ba0b IObservableOrgaizationTeamsClient -> IObservableTeamsClient 2014-02-18 10:51:58 +11:00
Brendan Forster c6b0ea7357 renamed IObservableBlobClient to IObservableBlobsClient 2014-02-18 10:44:36 +11:00