Commit Graph

44 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
Mickaël Derriey 13d5dab516 Port to .NET Core (#1503)
Port to .NET Core
2017-01-21 14:42:02 +10:00
maddin2016 11b1d756cc add new request 2016-06-06 19:25:30 +02:00
maddin2016 a3fafe90c1 update xml comments 2016-06-06 15:26:07 +02:00
maddin2016 41ba208131 add methods to set permission for team repositories 2016-06-06 12:53:06 +02:00
maddin2016 10cea07daf add TeamRepositoryUpdate model 2016-06-06 11:49:04 +02:00
Mordechai Zuber cacd6020f2 🔥 ITeamsClient.IsMember() 2016-04-13 18:26:02 -04:00
Devesh Khandelwal 084c513e06 Add ApiOptions overloads to Teams client + tests. 2016-03-23 13:20:43 +05:30
Haacked eb5d14cfdc Organize usings and remove unused 2015-08-04 21:12:37 -07:00
Brendan Forster bf4e773bd5 no tears, only dreams 2015-05-22 17:26:28 +09: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 0d201e6f22 add GetMembership endpoint which supports new behaviour 2015-05-22 11:29:26 +09:30
Brendan Forster b969fa1e04 cleanup due to GetAll* convention tests 2015-05-08 17:42:02 +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 78e76be7d9 Update clients 2015-03-24 00:11:52 +10:00
Andre Rodrigues a2f5f347b2 Rename parameter 2014-08-08 12:25:45 +01:00
Andre Rodrigues 58bae6f9fc Add a few missing team and organization APIs 2014-08-07 12:59:30 +01:00
Jason Kanaris a6b60a2bd5 Forgot some xml-doc items in the ITeamsClient 2014-07-15 23:30:19 -04:00
Jason Kanaris 468741b0da More team client repository methods
- Added teams client interface methods for AddRepository,
RemoveRepository and IsRepositoryManagedByTeam.
- Added Uri for the aforementioned methods.
2014-07-15 23:24:28 -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 fb6adcb92b Implemented Get / IsMember for teams
Issue #331.
Added integration tests and a new attribute that requires a new environment variable with an organization to test.

Conflicts:
	Octokit.Tests.Integration/Octokit.Tests.Integration.csproj
2014-04-22 17:12:49 -03:00
Daniel Cazzulino 86bd60f83c Fix #450
Remove redundant "Team" suffix from ITeamsClient methods.
2014-04-08 01:38:19 -03:00
Brendan Forster 7dc70a2192 💄 using statements, incorrect docs, deprecated Octokit.Response namespace 2014-03-08 16:33:46 +11:00
Jason K. 8d3aa5b41e - Added Get method to the Octokit/Clients/ITeamsClient interface.
- Implemented the aforementioned Get method in the
Octokit/Clients/TeamsClient class.

- Added test in Octokit.Tests/Clients/TeamsClientTests for the
aforementioned Get method.
2014-02-27 16:50:54 -05:00
Peter MacNaughton 231fa2c520 API interface summaries
Modified existing comments in IGitDatabaseClient, IMiscellaneousClient and
ITeamsClient. Hopefully for valid reasons.
2013-12-02 22:08:21 -07:00
Kristian Hellang 727429278e Fixed some R# documentation analysis errors 2013-11-25 23:40:47 +01:00
Haroon 09743e7e57 Use Teams not TeamItem
@Haacked mentioned http://developer.github.com/v3/orgs/teams/#list-teams
may not show all possible fields returned
2013-11-10 10:42:28 +00:00
Haroon 518fd7d8f5 delete team with test 2013-11-07 10:21:56 +00:00
Haroon ab25e9140a update_team test
fixed ctor for updateTeam class, fixed method params for UpdateTeam to
take in only the id and the UpdateTeam class. Now Putting to the correct
url.
2013-11-07 09:46:35 +00:00
Haroon 375cc244de split out teamitem from teams
looking at github api only id and name is returned for the list.
2013-11-06 12:55:08 +00:00
Haroon d5226534cc add create and update methods 2013-11-06 12:53:33 +00:00
haroon c44b18e947 prepping teams api client 2013-11-05 11:15:11 +00:00