David Bartley
68eff826e9
Ensure flags are parsed before calling bind.Default().
Tested by running `./example -bind localhost:1234`.
11 years ago
Carl Jackson
51390a05d1
Delete test of premature optimization
I suspect this is worth some perf, but it's probably not enough for us
to care. More importantly, it breaks in Go 1.5, where a recent
optimization made sync.WaitGroup much smaller.
11 years ago
Carl Jackson
1421f7cecb
Merge pull request #135 from dtbartle/serve-tls
Add goji.ServeTLS and goji.ServeListener functions.
11 years ago
David Bartley
5b91951757
Add goji.ServeTLS and goji.ServeListener functions.
There's already a ListenAndServeTLS function, but Serve conveniently
handles calling various graceful and bind methods.
11 years ago
Benedikt Lang
31b736133b
Documentation, code cleaning
11 years ago
Parker Moore
fccd5bb66f
misc: add GitHub Pages IP addresses
GitHub occasionally changes the IP addresses from which GitHub Pages
websites are served. For users of the service, they must upgrade any A
records to these IP addresses to continue using the service. This patch
provides this data in the `APIMeta` struct as the property `Pages` and
populates from the /meta endpoint.
Release Announcement:
https://developer.github.com/changes/2015-06-11-pages-a-records/
Fixes #212 .
11 years ago
Carl Jackson
d198bcf1dd
Merge pull request #133 from tchssk/fix-example-greet
Fix example greet
11 years ago
Taichi Sasaki
6c0d19f810
Fix example greet
11 years ago
Will Norris
af17a5fa85
add Doug Turner as contributor
11 years ago
Doug Turner
364d22ff1d
StarredRepository.repository has been renamed to .repo.
11 years ago
Will Norris
f48ac6971a
add i2bskn as contributor
11 years ago
i2bskn
110c6acdcb
Fix comments
11 years ago
Will Norris
7daf096c7b
add Panagiotis Moustafellos as contributor
11 years ago
Panagiotis Moustafellos
4560a73763
typo fix
ocd kicking in :)
11 years ago
Will Norris
9567bbdee8
add Alexander Harkness as contributor
11 years ago
Alexander Harkness
314bd44eeb
Fixed copy-paste error in documentation.
11 years ago
Craig Peterson
34bb95064e
adding ability to list organization repos
11 years ago
Carl Jackson
eaa649ab77
Improve documentation around explicit routing
Fixes #120 .
11 years ago
Carl Jackson
ff41f8eaa2
middleware: Make SubRouter Match-aware
This helps avoid a gotcha when using matches with sub-routers.
Fixes #120 .
11 years ago
Carl Jackson
1bd09ee690
Allow closing of hijacked connections
I think this is a regression introduced by c1922ab1 .
Fixes #130 .
11 years ago
Kamil Kisiel
47e8f450ef
Merge pull request #98 from cjellick/doc-fix
Fix typo
11 years ago
Craig Jellick
77f424d3ae
Fix typo
11 years ago
Will Norris
3d36a514f2
add Craig Peterson as contributor
11 years ago
Craig Peterson
42e85d18cf
Adding GetReleaseByTag
11 years ago
Craig Peterson
ef772c929d
Adding GetLatestReleast endpoint
11 years ago
Will Norris
4da7e49b0b
add Ruben Vereecken as contributor
11 years ago
Ruben Vereecken
fbc5be653c
Support for updated starring API
Supports the updated starring API as mentioned in issue #188 .
There is now a new struct called StarredRepository which holds a Repository and the new `starred_at` timestamp.
For now there is a special media type to request the new API. I've added a TODO for it to be deleted when the new API fully launches.
11 years ago
Will Norris
9eb187bac4
oauth2 package now provides a StaticTokenSource
11 years ago
Will Norris
930e6fdb8d
add Victor Castell as contributor
11 years ago
Victor Castell
b2f8d2ec40
use *[]string for DeploymentRequest.RequiredContexts
There's no way of serializing/requesting an empty required_contexts that
is needed for bypassing the commit status checks for the ref.
It's a breaking change but will allow to serialize an empty array and
omit empty value as expected.
11 years ago
Kamil Kisiel
94903de8c9
Merge pull request #89 from gemnasium/add_tests_for_pipe
Add complementary test for patterns with pipe
11 years ago
Will Norris
6f7d3a5ad9
update godoc link to github package
11 years ago
Will Norris
e8719935a2
use golang.org/x/oauth2 for field and integration tests
11 years ago
Parker Moore
43c0b5facf
licenses: add support for repository license via RepositoriesService.Get
11 years ago
Parker Moore
c35517a766
licenses: add support for the OSS licenses API provided by GitHub.
Fixes #185 .
11 years ago
Will Norris
6d44ada0e0
add tests for new Repositories.DownloadContents method
11 years ago
Michael Tiller
c9d6108f14
This adds an additional method to RepositoriesService to download a file
11 years ago
Parker Moore
af9f30e4c3
memberships: remove custom wasp Accept header
Memberships API is now official.
https://developer.github.com/changes/2014-09-16-finalizing-the-organization-and-team-membership-apis/
Fixes #192
11 years ago
Parker Moore
0aa6dda877
deployments: remove cannonball Accept header
Deployments API is now official.
https://developer.github.com/changes/2014-11-25-the-deployments-api-is-official/
Fixes #189 .
11 years ago
Will Norris
2d7e059012
add Parker Moore as contributor
11 years ago
Parker Moore
de34e68267
orgs_teams: remove AddTeamMember and RemoveTeamMember
Both have been deprecated.
Fixes #190 .
- AddTeamMember: https://developer.github.com/v3/orgs/teams/#add-team-member
- RemoveTeamMember: https://developer.github.com/v3/orgs/teams/#remove-team-member
11 years ago
Will Norris
508dcfd4c0
add support for Organization webhooks
Also:
- add PingHook to RepositoriesService
- move ListServiceHooks to Client, since hooks are no longer just for
repos. Leave behind Repositories.ListServiceHooks for backwards
compatibility
Fixes #178
11 years ago
Will Norris
9f1eec8b7c
only redact client_secret, add test for sanitizeURL
11 years ago
Will Norris
b3e831d20d
add Austin Dizzy as contributor
11 years ago
Austin Dizzy
c9bf21a1b7
Redact client_id and client_secret from error.
The client_id and client_secret URL variables,
containing sensitive app information, are leaked
to users if the Go error is returned to them. To
prevent this, sanitizeURL redacts the fields from
ErrorResponse's Error method. Therefore making the
error message safe to expose to users.
11 years ago
Will Norris
4d2835d25c
add Andreas Garnæs as contributor
11 years ago
Andreas Garnæs
571e5993ba
Add merge_base_commit to compare.
11 years ago
Will Norris
f43bc709e9
add Nathan VanBenschoten as contributor
(not added to AUTHORS - Google owns copyright)
11 years ago
Nathan VanBenschoten
a13db1a20c
Add Gists.GetRevision()
11 years ago
Will Norris
e491b53eeb
add dmnlk as contributor
11 years ago