38 Commits

Author SHA1 Message Date
Brendan Forster
dc2f6ff001 first pass at cleaning up attributes (#2157) 2020-03-18 09:02:11 -03:00
Henrik Andersson
4f0519ee13 Add a warning to the statistics client about caching (#1954)
* Add a warning to the statistics client about caching

* Simplify note about caching and direct users to the API docs

Also update to use summary instead of remarks

* Merge the summary sections as the 2nd section is ignored in VS

* squash duplicate summary tags together

* Also squash these lines
2019-09-16 09:40:12 -03: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
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
aedampir@gmail.com
44b0f4039d ID -> Id 2016-07-17 16:29:32 +07:00
aedampir@gmail.com
20df7ed711 removed <retunrs> tags 2016-07-07 03:08:54 +07:00
Alexander Efremov
08fd8e01c1 cleared <returns> tags 2016-06-17 05:49:46 +07:00
Alexander Efremov
dcac7b9305 added new overloads 2016-06-13 12:05:05 +07:00
Alexander Efremov
9d012f5e1d renamed repositoryName to name 2016-06-13 00:55:27 +07: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
Brendan Forster
d3c43b77a9 drop unnecessary awaits and specify ConfigureAwait otherwise for other core clients 2016-04-06 20:09:59 -04:00
Brendan Forster
43849928ae For GitHub Enterprise environments, URLs must be relative (no leading slash).
This was one of the cases we didn't notice, and so it causes the
StatisticsClient to drop the /api/v3/ prefix that GitHub Enterprise
requires to route things correctly.
2016-02-03 12:27:07 +10:30
Brendan Forster
80719c0033 aaaand format the code 2015-11-04 13:38:51 -08:00
Haacked
890f852c90 🎨 Refactor GetQueuedOperation to reduce duplication
Most calls to `GetQueuedOperation` are used to queue up an operation
that'll return a collection in a subsequent call. In the case that the
API returns No Content, we want to return an empty collection. This
refactoring embeds that last bit of logic into `GetQueuedOperation`
rather than making every caller have to do it.
2015-08-07 16:20:45 -07:00
Haacked
0e74097dde Handle NoContent response for queued operations
We didn't handle the 204 response properly for the `StatisticsClient`.
Now we do.

Fixes #836
2015-08-07 10:41:02 -07:00
Kristian Hellang
2508205cfd Fixed failing tests 2015-03-18 14:33:06 +01:00
Brendan Forster
d169876a3b added some more docs 2014-10-07 14:51:36 -02:00
Brendan Forster
7dc70a2192 💄 using statements, incorrect docs, deprecated Octokit.Response namespace 2014-03-08 16:33:46 +11:00
Amy Palamountain
8469a50c11 Unix Timestamp helper 2014-02-16 17:05:07 +13:00
Amy Palamountain
71029212b9 💄 for commit activities 2014-02-16 17:05:05 +13:00
Amy Palamountain
5a168f0924 💄 Lets talk about code frequencies 2014-02-16 17:05:04 +13:00
Amy Palamountain
ddab946e07 Line up with the api - what is this all about
💄
2014-02-16 17:05:02 +13:00
Amy Palamountain
ec5db2cdd5 👊 card statistics 2.0 2014-02-16 17:05:01 +13:00
Amy Palamountain
63da057642 Provide cancellation token option 2014-02-16 17:04:59 +13:00
Amy Palamountain
34383261d7 Moved Queued Wait into IApiConnection 2014-02-16 17:04:46 +13:00
Amy Palamountain
58345441de Refactor waiting into it's own method 2014-02-16 17:04:45 +13:00
Amy Palamountain
71263c349a Added commits per hour each day
Not enjoying this api. Will sort out all of these response types arrays
with secret meanings elsewhere. What is even a list of list of int.
Sanity. It's coming....
2014-02-16 17:04:41 +13:00
Amy Palamountain
ab7ce9d16d Added weekly commit counts api 2014-02-16 17:04:35 +13:00
Amy Palamountain
d74768b0a7 Added additions and deletions aggregate api 2014-02-16 17:04:31 +13:00
Amy Palamountain
815da312e8 Get commit activity for the last year 2014-02-16 17:04:21 +13:00
Amy Palamountain
021ef3d534 Retry until call is successful
This is crude I know, but will be revisited once all apis implemented
2014-02-16 17:04:18 +13:00
Amy Palamountain
c14acda095 💄 2014-02-16 17:04:12 +13:00
Amy Palamountain
23ee95903e 💄 renamed to GetContributors 2014-02-16 17:03:18 +13:00
Amy Palamountain
feb52c0a69 Implement client 2014-02-16 17:03:15 +13:00
Amy Palamountain
98afca599f renamed parameter 2014-02-16 17:03:14 +13:00
Amy Palamountain
af4c82ad3d Updated signature to include repo name and owner
Also return a list of contributors because.reasons (being that is what
the api returns)
2014-02-16 17:03:12 +13:00
Amy Palamountain
91b059274c Stubbed implementation of IStatisticsClient 2014-02-16 17:03:11 +13:00