Commit Graph

35 Commits

Author SHA1 Message Date
Brendan Forster
28892df03d some cleanup of the project (#2063) 2020-01-23 14:51:00 -04:00
Henrik Andersson
a05d49e81d Expose affiliation parameter when listing collaborators (#2043) 2019-11-18 07:10:35 -04:00
Itai Bar-Haim
4e804f61a6 Prefer using nameof(x) over literal "x" (#1781)
* updated XML docs and added some missing bits.

* prefer nameof(x) over literal "x"
2018-03-07 20:43:10 +10:00
Ryan Gribble
5e89232521 Release v0.25 - She'll be Comin' Round the Mountain (#1656)
* Run `build -Target FormatCode` to fixup whitespace etc

* Fix delete release asset integration test

* Fix repository fork test

* Fix pagination test for PR Review Request

* First cut of release notes

* update release notes

* Update release notes

* include links to contributors

* Add breaking changes/advisories section

* Tidy up formatting

* Tidy up wording
2017-08-23 21:27:15 +10:00
Henrik Andersson
cda714bef6 Organization membership preview API changes - Review user permission (#1633)
* Add organization membership preview header

* Add API endpoints to preview a collaborators permission

* Add methods to preview a collaborators permission

* Add methods to the observable repo collaborator client

* Fix convention test failure

* Use correct API endpoint when using repository ID

* Move the helper function pair so they aren't in between another pair

* Use the correct URL for the review permission API endpoint

* Add unit tests

* Add integration tests for review permission methods

* Fix spelling mistake

* Renaming enum as per review
2017-07-29 15:08:44 +10:00
Ryan Gribble
6be608b4ef Merge remote-tracking branch 'upstream/master' into dotnetcore
# Conflicts:
#	.travis.yml
#	Octokit.sln
#	appveyor.yml
2017-04-04 19:58:48 +10:00
Joen Sindholt
596e51d5b3 Surface exceptions in RepoCollaboratorsClient.Add method (#1576)
* Surface exceptions in RepoCollaboratorsClient.Add method

* Reintroducing try...catch but for NotFoundException

* Remove old/test dotnet core builds from appveyor
2017-04-03 22:34:43 +10:00
Mickaël Derriey
13d5dab516 Port to .NET Core (#1503)
Port to .NET Core
2017-01-21 14:42:02 +10:00
zzzprojects
82dfabefa7 Fixing Async Deadlock
Adding missing ConfigureAwait + put on single line await &
ConfigureAwait
2016-10-03 11:24:07 -04:00
Andreia Gaita
9e958bf998 Make Repository Id a long, it's going to grow... 2016-09-15 02:15:11 +02: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
aedampir@gmail.com
bfb1b3f991 burned<returns> tags 2016-07-06 02:58:01 +07:00
Alexander Efremov
fc07359dc7 cleared <returns> tags 2016-06-17 06:04:06 +07:00
aedampir@gmail.com
d2719f635f updated XML documentation of IObservableRepoCollaboratorsClient 2016-06-15 19:16:09 +07:00
aedampir@gmail.com
ae6c5b7405 added overloads with repositoryId for IObservableRepoCollaboratorsClient 2016-06-15 19:16:09 +07:00
aedampir@gmail.com
3ac0ea8efa Synchronized XML documentation of IObservableRepoCollaboratorsClient and IRepoCollaboratorsClient 2016-06-15 19:16:09 +07:00
aedampir@gmail.com
8e4a777e18 Added overloads with repoId for IRepoCollaboratorsClient 2016-06-15 19:16:09 +07:00
aedampir@gmail.com
063cd0bb3f Changed parameter name from "repo" to "name"
Updated XML documentation of methods
2016-06-15 19:16:08 +07:00
Ryan Gribble
4850b83906 Add Permissions attribute to User
Update integration tests to ensure Permissions field is populated
Add Accept header for this functionality, so it works on GHE 2.5
Fix impacted URL unit tests
2016-06-04 23:35:23 +10:00
Alexander Efremov
efa2942669 Fix usage of FormatUri method (#1290)
* updated xml documentation of Deployments method

* fixed in OrganizationMembersClient.Delete method.

* Revert "fixed in OrganizationMembersClient.Delete method."

This reverts commit f47405f5337e60945fdb3ccf1368f16069599217.

* fixed usage of "repos/{0}/{1}".FormatUri(owner, name);

* fixed usage of "user/keys/{0}".FormatUri(id)

* fixed usage of "users/{0}".FormatUri(login)

* added ApiUrls.StatsContributors method

fixed usage of "repos/{0}/{1}/stats/contributors".FormatUri(owner, repositoryName)

* added method ApiUrls.StatsCommitActivity
fixed usage of "repos/{0}/{1}/stats/commit_activity".FormatUri(owner, repositoryName)

* fix to prev. commit

* added method ApiUrls.StatsCodeFrequency
fixed usage of "repos/{0}/{1}/stats/code_frequency".FormatUri(owner, name)

* added method ApiUrls.StatsParticipation
fixed usage of "repos/{0}/{1}/stats/participation".FormatUri(owner, name)

* added method ApiUrls.StatsPunchCard
fixed usage of "repos/{0}/{1}/stats/punch_card".FormatUri(owner, name)
fixed documentation

* added method ApiUrls.RepoCollaborator
fixed usage of "repos/{0}/{1}/collaborators/{2}".FormatUri(owner, repo, user)

* added method ApiUrls.OrganizationMember
fixed usage of"orgs/{0}/members/{1}".FormatUri(org, user)

* added method ApiUrls.Organization
fixed usage of "orgs/{0}".FormatUri(organizationName)

* Fixed inconsistency in ApiUrls.cs (#1287)

* Fix inconsistecy in parameters name that used in methods that use "repos/{0}/{1}" syntax.

* added XML documentation for PullRequestFiles method

* updated XML documentation of some methods in ApiUrls

* added needed XML doc tags

* fixed name of parameter

* fixed name of parameter

* undo prev. commit

* updated XML documentation of ApiUrls

* fixed after merge errors

* fxied after merge errors

* added OrganizationMembersClient accidentaly missed during rebase

* errors fixed arises during merging

* fixed by remarks
2016-05-11 08:51:31 +02:00
Alexander Efremov
63a8c1d70a Add ApiOption overloads to methods on IRepoCollaboratorsClient (#1282) 2016-04-29 14:16:07 +10:00
Brendan Forster
c1c035cf01 moved ConfigureAwait onto same line as await 2016-04-06 20:28:46 -04:00
Haacked
17a2abbdc0 Remove already declared.usings 2015-08-04 21:22:46 -07:00
Haacked
eb5d14cfdc Organize usings and remove unused 2015-08-04 21:12:37 -07:00
Haacked
f83ad06c85 Add extension method for common checks against the HTTP status 2015-01-04 19:15:46 -08:00
Paul Betts
c18b156fab Rename IConnection methods 2014-04-30 21:30:45 -07:00
Brendan Forster
7dc70a2192 💄 using statements, incorrect docs, deprecated Octokit.Response namespace 2014-03-08 16:33:46 +11:00
Kristian Hellang
727429278e Fixed some R# documentation analysis errors 2013-11-25 23:40:47 +01:00
Haroon
f6b647ee3c implementation for reactive repo collab client 2013-11-14 23:02:14 +00:00
Haroon
164c5b5faa use the new PUT method 2013-11-14 11:49:19 +00:00
Haroon
e903e8f97b fixed links to api 2013-11-14 11:49:17 +00:00
Haroon
d182927ffa remove collab from a repo 2013-11-14 11:49:16 +00:00
Haroon
95ccc20963 adds a collab to a repo 2013-11-14 11:49:16 +00:00
Haroon
8dd3dd8cb9 is user collaborator for repo? 2013-11-14 11:49:15 +00:00
Haroon
62a4f6c1e3 prepping repo collaborators client 2013-11-14 11:49:14 +00:00