Garrett Squire
575b0b3756
add support for merge method and repository squash settings
Closes #437 .
Closes #446 .
Change-Id: I7a9bd0717310ef016b2695fe0e5cffb8e8b86ff8
9 years ago
Glenn Lewis
55263f3052
Add Lucas Alcantara to AUTHORS
Change-Id: I8d2c9474de1585936f5cd7093b1a7404de6ac76d
9 years ago
Lucas Alcantara
f8a2c9578e
Add new webhooks for Labels and Milestones
Fixes #460 .
Closes #463 .
Change-Id: I34688c42a9328af10b4b61546e8bfd2c95c893aa
9 years ago
Glenn Lewis
a0472864f3
Add Ronak Jain to AUTHORS
Change-Id: I86b10e5038a8292337486d40fd9d0d8310e2c0c3
9 years ago
Ronak Jain
5494398587
removed authorization preview header
Fixes #464 .
Closes #465 .
Change-Id: I9bde509ef6bf9382c48344e58d4a77da4b33e4a3
9 years ago
Preston Van Loon
b30a8bd204
Add support for Pages Preview API GetPageBuild for getting single specific page build
Closes #415 .
Closes #447 .
Change-Id: I36d64eb59d494afcc872a04a1da9e0b11f396e46
9 years ago
Fabrice Vaillant
f7fcf6f52f
Switches to the new traffic API format ( #462 )
Fixes #458
9 years ago
Glenn Lewis
ed33550bbf
Update AUTHORS file
Change-Id: Iba31c9762d66cf42198009fcf7ae074211679d1a
9 years ago
Bradley Falzon
6afedaae20
Add review_comment{s,}_url fields to PullRequest
Generalise and add to PullRequestsService URL test
Fixes #453 .
Closes #454 .
Change-Id: Iaee7d8498d1d6a0813bbba14261e4393f77c9d1f
9 years ago
Anshuman Bhartiya
1bc362c773
added license_template to repo struct
Closes #443 .
Change-Id: I7c30d4091b11216e0aa1189abe001ac2e7476e49
9 years ago
Victor Vrantchan
b0386ddc32
Use nested commit for StatusEvent
Full documentation of StatusEvent webhook here:
https://developer.github.com/v3/activity/events/types/#statusevent
Use RepositoryCommit type for Commit field in StatusEvent.
Fixes #448 .
Closes #449 .
Change-Id: I9a2936a1893f50c3b507f6f295428db85ecf932b
9 years ago
Timothée Peignier
93d3f73032
Add support for integrations service
Closes #436 .
Change-Id: I02f7503a362ffc5ec09e24d0e3da0f8adfcd4b0c
9 years ago
Don Petersen
a1746f2820
Fix type of RepositoryRelease Author field.
The author JSON is in the format of a user, not a commit author, and so
the author field on all the release fetching methods were nil.
Closes #439 .
Change-Id: Ifc1e79a3c92b27ea65618b16a3a2fd2eb2873710
9 years ago
Dmitri Shuralyov
59307ef6be
Add and detect AbuseRateLimitError.
It's similar to RateLimitError, but it's a different type of rate limit
error. It is documented at:
https://developer.github.com/v3/#abuse-rate-limits
Parse and include the Retry-After header value, if present. It is
documented at:
https://developer.github.com/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits
According to GitHub support, its type is an integer value representing
seconds.
Helps #431 .
9 years ago
Glenn Lewis
3e246d2999
Add support for new Projects Preview API
Fixes #432 .
Change-Id: I4792114482f412f0eff54a6899a759fc9393ff88
9 years ago
Glenn Lewis
e4194fe26c
Add Timothée Peignier as author
Change-Id: Ia98b6c6aaaa579642fc097ac48ab7cb064eaf281
9 years ago
Timothée Peignier
b0b867f2d5
Add installation webhook events
Add support for the new webhooks event for installations.
See: https://developer.github.com/early-access/integrations/webhooks/
Closes #434 .
Change-Id: I74d3d50cb6b350322fc4515ad70097f0f70ae478
9 years ago
Antoine Pelisse
94a3cd9f53
Parse Webhook payload into actual event
Closes #427 .
Change-Id: I67faac8df63e0d55fcce4ca5f9ab50e26c04d6b3
9 years ago
Glenn Lewis
6c0472a769
Add Dave Henderson as author
Change-Id: Ia2ea767cc4da4a66ad20fab0382def0c10a688b3
9 years ago
Dave Henderson
0b167f8965
Adding Milestone support for PullRequests
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
9 years ago
Yumikiyo Osanai
a32b73b3f7
Update RateLimits comment
GitHub search API ratelimits are changed recently.
Reference: https://developer.github.com/v3/search/#rate-limit
Rate limit for unauthenticated requests change from 5 to 10 per minute.
And, rate limit for authenticated requests change from 20 to 30 per minute.
Signed-off-by: Yumikiyo Osanai <yumios.art@gmail.com>
9 years ago
Maryum
6d1b527d46
fix comment typo
Closes #424
9 years ago
Luke Young
073020b6c4
Add missing 'Type' field to 'GistFile' struct
9 years ago
chandresh-pancholi
a59a35745f
Fix code example in README file
Fixes #420
Closes #423
9 years ago
Will Norris
9fa26affe4
use slice of pointers rather than pointer to slice
9 years ago
Fabrice
8c8666ed5c
Add support for Repository Traffic API
Fixes #417
Closes #418
9 years ago
Dmitri Shuralyov
db3374506c
Travis: Add Go 1.7.
9 years ago
Juan Basso
b969816466
Adding missing field to search results
Added the field incomplete_results. It is docummented on https://developer.github.com/v3/search/#timeouts-and-incomplete-results
9 years ago
Juan Basso
56add9d407
Add some missing fields
Refs #103
Closes #411 .
Change-Id: Ia61f48de052fd61a98357ba6182ead613b454fa3
10 years ago
Glenn Lewis
215b9c6dec
add Juan Basso as author
Change-Id: I9a984b191e75fcd9e9fc3ca4ac563100464b9845
10 years ago
Juan Basso
a27d03e799
Fixed typo and removed unused vars
Refs #408
10 years ago
Juan Basso
331e3f6190
Fixing some lint issues
Closes #408
10 years ago
Dmitri Shuralyov
b5e5babef3
Set Content-Type to "application/json" for request bodies
According to https://developer.github.com/v3/#parameters :
For POST, PATCH, PUT, and DELETE requests, parameters
not included in the URL should be encoded as JSON with
a Content-Type of 'application/json'
Closes #407 .
Change-Id: Iee60a3ed6e06b85cc64f687fd28e7663c1fc34e3
10 years ago
Glenn Lewis
e1957cf0f6
add Huy Tr as author
Change-Id: I17b9482ac3c49af59b6d0b662a6e7d720073651d
10 years ago
Huy Tr
769837dee3
Add Request a Page Build API
Fixes #394 .
Closes #405 .
Change-Id: I00240a792bfcafd744e57a130af3168482f235d9
10 years ago
Dmitri Shuralyov
6a121d01ab
Fix Mark{,Repository}NotificationsRead methods.
Both of those endpoints use PUT method, which means they must send
the parameters as a JSON encoded body rather than query parameters.
Source: https://developer.github.com/v3/#parameters
Fixes #402 .
Closes #403 .
Change-Id: I444d1ce9ba881200282ff617454addc2e6eb4793
10 years ago
Dmitri Shuralyov
6675b39766
Don't use Header.Add where Header.Set is sufficient.
This is largely a style change. In the case of NewRequest and NewUploadRequest, it is completely a noop given current code (since a new request is created, and each header is added only one time). For BasicAuthTransport, it's a noop as long as incoming request doesn't already have "X-GitHub-OTP" header set (and if it did, then this is a better behavior to change its value rather than add a new one).
Even though these changes are largely noops, Header.Set is a simpler primitive to reason about, and it's more representative of the intended action. For "Content-Type", "Accept", and "User-Agent" headers, multiple such headers do not make sense, so it's better to use Header.Set than Header.Add.
10 years ago
Glenn Lewis
dc287189c0
Stop using custom media type for Multiple Assignees.
Fixes #399 .
Fixes #401 .
Change-Id: I97be757ad8672c649076ecbb0a51d60576d29164
10 years ago
Will Norris
5a00bb7b4d
remove CONTRIBUTORS file
Google no longer recommends CONTRIBUTORS files for projects, since this
data is better retrieved directly from version control.
Additionally, contributors are now instructed to add themselves (or
their employer, if appropriate) to the AUTHORS file, rather than the
maintainers being responsible for trying to keep this file up to date.
Ultimately, this should result in more accurate data, since in most
cases we don't know whether the code is copyright the contributor or
their employer.
10 years ago
Dmitri Shuralyov
136ef5cdab
Put sync.Mutex on top of variables it protects.
This change makes the code more consistent with the rateMu below.
This is a followup to https://github.com/google/go-github/pull/390#discussion_r68863652 .
Closes #396 .
Change-Id: I0fc8b280911f9171fb4d8e3fa60cf6d53b64a65b
10 years ago
Glenn Lewis
53a129e94c
Sync doc.go and README.md
Fixes #397 .
Change-Id: I30ce336e3a36cf5758b9bf52b9dd77f7c1df5f27
10 years ago
Glenn Lewis
f6f75a742a
add Carlos Alexandro Becker as contributor
Change-Id: I9668e8806934438062bac3f34e4759d44b5f63f4
10 years ago
Carlos Alexandro Becker
878df980b6
Add missing ID fields to PullRequest and Issue structs
In
[events](https://developer.github.com/v3/activity/events/types/#pullrequestevent ),
the `id` field is present both in the Issue and PullRequest objects.
This PR adds them.
10 years ago
Glenn Lewis
2d3520b585
add unit tests for #342 - CreateImpersonation and DeleteImpersonation
Change-Id: Ib5fd4e99b88ff01e3363e049177326b7ee97be93
10 years ago
Hanno Hecker
07a1059646
add (AuthorizationsService) CreateImpersonation/DeleteImpersonation
Closes #342 .
10 years ago
Will Norris
92234e5677
add missing license headers in a few files
10 years ago
Glenn Lewis
525696f56f
add Yannick Utard as contributor
Change-Id: I8ba9587109cecf9ba5cb64efa20e58ecb1c7bfe0
10 years ago
Yannick Utard
8468db8b74
Add ReadOnly boolean field to deploy keys
Closes #391 .
Change-Id: Ie5bca9e80c5d1a1348f640a1a75063bac63f539a
10 years ago
Matthew Dempsky
8808be6605
Avoid unnecessary FooService allocations
Fixes #389
Fixes #390
10 years ago
Billy Lynch
087a452730
add support for OAuth Grant Authorizations API
GitHub API docs: https://developer.github.com/v3/oauth_authorizations
Fixes #348 .
Closes #388 .
Change-Id: I795b1c0e10bde10a1bc9aaa4594af4c91e07962d
10 years ago