Keita Urashima
7baedea38f
Fix webhook sample code
Closes #478 .
Change-Id: I90e33c07431e868322629dc337000430c38d3b1d
9 years ago
Will Maier
c6e655bba7
Return IssueEvent in ListIssueEventsForRepository
Fixes #176 .
Closes #475 .
Change-Id: I37f80bedbc689e1a8f97488e83dd69179dedcad4
9 years ago
Parker Moore
511bc5f4a8
Add support for PullRequestReviewEvent webhook.
Fixes #450 .
Closes #451 .
Change-Id: Iebdd2bd35a8ddd1346b2268e4e837d6145e990dc
9 years ago
Nick Miyake
59cf7e6efb
Update License struct and add new RepositoryLicense struct
Update structs to reflect the new reponses returned from GitHub.
Fixes #471
9 years ago
Lucas Alcantara
905f04725b
changed to point to new Projects API
Created new service ProjectsService and removed methods in repos_projects that belong to ProjectsService.
Minor tweaks by @gmlewis following review.
Fixes #461 .
Closes #467 .
Change-Id: I8b85ff6e716151b505c843c905534bd5fe8257ae
9 years ago
Lucas Alcantara
f561108eef
changed updatedAt json to correct json value
Closes #469 .
Change-Id: Ia5e4b979cc7cf70734c4104eb5616e0eb9cd5c3d
9 years ago
Garrett Squire
575b0b3756
add support for merge method and repository squash settings
Closes #437 .
Closes #446 .
Change-Id: I7a9bd0717310ef016b2695fe0e5cffb8e8b86ff8
9 years ago
Lucas Alcantara
f8a2c9578e
Add new webhooks for Labels and Milestones
Fixes #460 .
Closes #463 .
Change-Id: I34688c42a9328af10b4b61546e8bfd2c95c893aa
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
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
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
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
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
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
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
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
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
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
Beshr Kayali
e4b1c2870f
add support for list commits endpoint
Use Timestamp type for GistCommit CommitedAt field.
Add support for ListForks endpoint.
Add missing fields for GistCommit and GistFork types.
Closes #385 .
Change-Id: If1379d83173d52c974bb5834a834d97aee2f0ad8
10 years ago
Billy Lynch
45cbf2313c
Add support for affiliation and visibility in RepositoryListOptions.
Also updates comments in RepositoryListOptions to match the Github API docs
(https://developer.github.com/v3/repos/#list-your-repositories ).
Fixes #231
10 years ago
Dmitri Shuralyov
c31236d1f3
Remove issue locking/unlocking preview media type.
These changes are now official, so the custom media type is no longer
needed.
Fixes #381 .
Fixes #382 .
Updates #279 .
Change-Id: I33cad47c6645c5292f699826ae117b94260a3044
10 years ago
Glenn Lewis
bdd0f40310
better support both Events API and Webhook events in PushEventCommit
Fixes #370 .
Change-Id: I0a8567ae352bd2e9e973ac73383894d2b4cdfb9d
10 years ago
Glenn Lewis
5c1b3a05b4
add support for new repository invitations
Fixes #371 .
Change-Id: I97f2fc28ce048442ee8af3bd11c48b5b2084e09b
10 years ago