Alex Flint
34b52501bd
Merge pull request #34 from walle/defaults_for_multiple
Print defaults for multiples
10 years ago
Fredrik Wallgren
e71d6514f4
Print defaults for multiples
Check if the default value supplied is a slice and not nil, if so
print the list of values supplied.
Test case for slice argument with and without default values.
Default values for slices was not printed because slice is not
comparable, but the zero value for slices is nil.
10 years ago
Matt Silverlock
147a95f5e3
Merge pull request #104 from Digitalxero/method-to-get-url-template
[feature] GetHostTemplate and GetPathTemplate return the template used to build the route.
10 years ago
Will Norris
58e27d2951
add Isao Jonas as contributor
Change-Id: Ic6c776632587436d8b2a7810521f1a5ca1eae815
10 years ago
Isao Jonas
648ccf3e81
add additional fields to Milestone struct
Additional fields (html_url, labels_url, id, closed_at) pulled from
https://developer.github.com/v3/issues/milestones/
Fixes #295
10 years ago
Glenn Lewis
9674b3e1b8
go-github: add support for commit reference SHA-1 method
Fixes #297
Fixes #298
Change-Id: Ib17c43b368a0d0ee1a33690c17ad7c0f4dab55e5
10 years ago
Glenn Lewis
5808c118ea
go-github: add support for getting content of a repository's license
Fixes #228
Fixes #301
Change-Id: I43d414332baa87b430487ea03d125633f8e40bd5
10 years ago
Glenn Lewis
d18b8e445f
go-github: fix PageBuildEvent unmarshaling
Change-Id: I385c22c290dd550c37ee7b3632a1a690cfaa36d7
10 years ago
Will Norris
380aa1ce24
add Luke Evers as contributor
Change-Id: I68a0d4fc72a4bd298298759ac70c0a2e8d83c00a
10 years ago
Alex Flint
45474a9b25
Merge pull request #33 from walle/multiple
Defaults for multiples, intended behaviour
10 years ago
Carl Jackson
e9a3f02751
travis: test under Go 1.6
10 years ago
Carl Jackson
a01dd37b8f
graceful: import cloneTLSConfig from net/http
10 years ago
Luke Evers
59b5cf31ed
Add InReplyTo to PullRequestComment struct
In V3 of the GitHub API, pull request comments are created in two ways. The
first way is to create a comment on a specific line of a file in a commit
with the following parameters:
| Name | Type | Description |
|-----------|---------|--------------------------------------------------------|
| body | string | Required. The text of the comment |
| commit_id | string | Required. The SHA of the commit to comment on. |
| path | string | Required. The relative path of the file to comment on. |
| position | integer | Required. The line index in the diff to comment on. |
And the second way is through a reply to an existing comment with the following
parameters:
| Name | Type | Description |
|-------------|---------|---------------------------------------|
| body | string | Required. The text of the comment |
| in_reply_to | integer | Required. The comment id to reply to. |
This commit adds support for the second (or "Alternative Input" according to
the GitHub docs) way.
10 years ago
Fredrik Wallgren
1488562b1e
Allow override of defaults for slice arguments
This commit fixes a bug where if a multiple value argument (slice) has default
values, the submitted values will be appended to the default. Not
overriding them as expected.
10 years ago
Dj Gilcrease
f7ac7251e3
Update doc strings based on feedback
10 years ago
Matt Silverlock
c9e326e2bd
Merge pull request #150 from gorilla/elithrar/go-lint
[docs] Satisfied golint.
- SkipRouter should also be ErrRouterSkipped (or similar) but a change would break the public API.
10 years ago
Matt Silverlock
02c98b3f73
[docs] Satisfied golint.
- SkipRouter should also be ErrRouterSkipped (or similar) but a change would
break the public API.
10 years ago
Dj Gilcrease
f84ab9ab62
Fix go fmt issues
10 years ago
Dj Gilcrease
0d60c4bfeb
Add tests for GetPathTemplate. Added GetHostTemplate and associated tests as well
10 years ago
Dj Gilcrease
16507e2c47
Merge branch 'master' into method-to-get-url-template
10 years ago
Matt Silverlock
c582f4facc
Merge pull request #149 from gorilla/elithrar/readme-website
[docs] Add http://www.gorillatoolkit.org/pkg/mux to README.
10 years ago
Matt Silverlock
5f42f0f524
[docs] Add http://www.gorillatoolkit.org/pkg/mux to README.
10 years ago
Matt Silverlock
d067e87329
Merge pull request #144 from tumdum/regexp-speedup
[refactor] Only wrap regexp in group if not already in a group + perf. gains.
- Addresses https://github.com/gorilla/mux/issues/62
- ~27% less allocs/~15% speedup (ns/op)
10 years ago
Matt Silverlock
1ea25387ff
Merge pull request #28 from gorilla/ci/travis-go-1.6
[ci] Update .travis.yml to build Go 1.6
10 years ago
Matt Silverlock
dfc482b255
Merge pull request #148 from gorilla/ci/travis-go-1.6
[ci] Update .travis.yml to build Go 1.6
10 years ago
Matt Silverlock
b53bb424a1
Update .travis.yml to build Go 1.6
10 years ago
Matt Silverlock
7872f90afa
Update .travis.yml to build Go 1.6
10 years ago
Alex Flint
aaae1550b7
Merge pull request #32 from alexflint/override_program_name
make it possible to override the name of the program
10 years ago
Glenn Lewis
5f4a113632
go-github: add useful fields to Webhooks
Change-Id: Ia4888efa18c557a31af7093cfa449a67650afa20
10 years ago
Glenn Lewis
ac4445ca1c
go-github: add Event types for Webhooks
Change-Id: I013dcbfb58ec10756c7b4e4bae6fe79b5e7c0062
Fixes #287
10 years ago
Will Norris
5202c804ed
CONTRIBUTING: remove paragraph that was rewritten
10 years ago
Will Norris
13acccd3ac
update CONTRIBUTING file
- simplify CLA text slightly
- clarify naming convention for .go files
- add "Maintainer's Guide" to document how I handle merging in
contributions
10 years ago
Will Norris
868f722d7a
add David Deng (Googler) as contributor
10 years ago
David Deng
d3fb171e8b
Do URL path escape composing the URL for GetContents
10 years ago
Will Norris
3bcea13cf6
add Luke Roberts as contributor
10 years ago
Luke Roberts
4c742510b0
add preview header to list branches request
10 years ago
Glenn Lewis
d91d6cc927
go-github: move event types into event_types.go
fixes #283
10 years ago
Glenn Lewis
ac77c93f2b
go-github: add support for issue locking / unlocking
Fixes #279 .
Change-Id: I55ffdadfe5970d664ac94048e8bc2b8f5d935903
10 years ago
Will Norris
2ca26e16ec
add Pierre Carrier as contributor
10 years ago
Pierre Carrier
1f0226685e
issues: add Repository
10 years ago
Carl Jackson
859bfa93a8
README: only look at test status for master
10 years ago
Dmitri Shuralyov
39d75606a4
Document specific errors returned by CheckResponse.
10 years ago
Dmitri Shuralyov
c3f5683ad1
Add RateLimitError type, detect and return it when appropriate.
Fixes #152 .
Add tests for RateLimitError.
Refactor populateRate into a more general parseRate.
10 years ago
Dmitri Shuralyov
121939088e
Minor Rate, RateLimits documentation fixes.
Rate is now a method, not a field.
Mention RateLimits rather than RateLimit since the latter is deprecated.
Use Go convention for marking deprecated identifiers. See
257114af91 .
10 years ago
Will Norris
1ef1ae6f86
add StatusUnprocessableEntity constant
10 years ago
Piotr Zurek
d722750ab1
new repo struct for push events
fixes: #131,#271
10 years ago
Carl Jackson
6b97834061
Update code coverage path
10 years ago
Carl Jackson
811b2725cd
Merge pull request #176 from tesujimath/urlquery-middleware
Added urlquery middleware, resolves #174 .
10 years ago
Shawn Smith
05bd5edbd5
gofmt -s
fixes #274
10 years ago
Will Norris
77fb2afcd9
add saisi as contributor
10 years ago