Ondrej Kupka
cab36cd2eb
GitService: Add support for refs
This commit adds support for Git refs.
Listing of refs does not support sub-namespaces.
12 years ago
Kamil Kisiel
c4e0d8b371
Merge pull request #41 from pschlump/master
Fix to keep query string intact when 301 redirect occurs.
12 years ago
Kamil Kisiel
e807f7c338
Add Travis badge
12 years ago
Kamil Kisiel
3829d74241
Add travis.yml
12 years ago
Kamil Kisiel
bb1bb4d879
Add Travis badge
12 years ago
Kamil Kisiel
37ad08d495
Merge branch 'master' of github.com:gorilla/context
12 years ago
Kamil Kisiel
257e3549c5
Add travis.yml
12 years ago
Kamil Kisiel
db86729398
Merge pull request #43 from andrewsmedina/gofmt
go fmt.
12 years ago
Kamil Kisiel
9192307f0e
Merge pull request #8 from andrewsmedina/gofmt
go fmt.
12 years ago
Andrews Medina
b8a1d5a34a
go fmt.
result of `gofmt -s -w .`.
12 years ago
Andrews Medina
cebebed6c4
go fmt.
result of `gofmt -s -w . `.
12 years ago
Thomas Bruyelle
0ca38ec285
Accepted mime type fixes
According to various blog posts of the official github developer website
[1] [2], the mime preview for Releases and Search are no longer needed.
Moreover, they recommend to use `application/vnd.github.v3+json` for
every requests.
[1] http://developer.github.com/changes/2013-11-04-releases-api-is-official/
[2] http://developer.github.com/changes/2013-10-29-search-api-becomes-an-official-part-of-github-api-v3/
12 years ago
Philip Schlump
ab8ae247f1
Fixed the domain name copied from my other code to be example.com
12 years ago
Philip Schlump
6689ee8243
Cleaned up testing.
12 years ago
Philip Schlump
1a2411f44a
Added tests to verify that the 301 redirect returns query string
12 years ago
Philip Schlump
d10d5466f2
Fixed problem with droping query string.
12 years ago
Kamil Kisiel
42cbcc5a24
Merge pull request #38 from TheDude05/fix-doc-typo
Fix typo in documentation
12 years ago
Andrew Williams
9d99a92775
Remove extra parentheses
12 years ago
Will Norris
f482326796
add Zach Latta as a contributor
12 years ago
Zach Latta
15e40efde8
Add Gitignore support.
12 years ago
Will Norris
16b3fa752d
add Amey Sakhadeo as contributor
12 years ago
Amey Sakhadeo
b4885541b1
Add support for listing watchers
12 years ago
Will Norris
31a5b8632e
add Thomas Bruyelle as contributor
12 years ago
Thomas Bruyelle
3b87a64f0d
add support for Release assets
Includes Repositories.ListReleaseAssets, Repositories.GetReleaseAsset,
Repositories.EditReleaseAsset, Repositories.DeleteReleaseAsset,
Repositories.UploadReleaseAsset.
12 years ago
Thomas Bruyelle
4898732882
add support for basic Releases methods
include Repositories.ListReleases, Repositories.GetRelease,
Repositories.CreateRelease and Repostories.DeleteRelease.
12 years ago
Shawn Smith
89bac30450
add HTMLURL (html_url) to PullRequest
12 years ago
Quinn Slack
9837b3c931
Add MirrorURL field to Repository
12 years ago
Will Norris
2ab27f559f
use go-querystring to construct all request URLs
this is a breaking change for a handful of Option structs that were
defining the Page option directly (they now embed ListOptions).
finishes fixing #56
12 years ago
Will Norris
7452bae91f
return nil resource on error
this change also includes some additional minor code cleanup
fixes #58
12 years ago
Will Norris
ce4ba26361
add missing fields on Organization struct
12 years ago
Will Norris
a6715a27a0
code style cleanup
run through 'gofmt -s'
12 years ago
Will Norris
3a2a05affc
add Alec Thomas as contributor
12 years ago
Alec Thomas
3c87bd7f86
Switch ListByRepo() to addOptions().
12 years ago
Kamil Kisiel
b08c5fcf14
Merge pull request #35 from JulienSchmidt/patch-1
Fix typo
12 years ago
Julien Schmidt
0ae6d35b08
Fix typo
remove doubly present "the"
12 years ago
Will Norris
994f6f8405
use go-querystring for constructing URLs
this only updates a few user and repo functions just to establish the
calling pattern. closes #56 (which also includes a little more
background)
12 years ago
Will Norris
aed46a3eac
add PerPage to ListOptions
12 years ago
Will Norris
4b4aed3472
sort types in String() test
12 years ago
Will Norris
fb1d2d12e3
test unmarshalling as well in testJSONMarshal()
12 years ago
Will Norris
5f1c20afed
start of tests for json marshalling of resources
ktoso kind of shamed me with his extensive resource tests in #49 :), so
I'm finally starting to setup a structure for more general testing of
this type. This change adds the `testJSONMarshal` helper function, and
adds tests for the `User` type. This includes two checks:
- check that an empty resource produces an empty JSON object. This
effectively verifies that all fields include 'omitempty' so that
we're not unintentionally sending additional data over the wire.
- check that a full resource with every field populated produces the
expected JSON. This verifies that the JSON field mappings are
correct. In this case, it might be okay to use resource samples from
the GitHub docs, though I do still prefer very simple field values
since it makes tests easier to read.
When these tests are added for each resource type, we can reduce all of
our other tests to return bare minimal response bodies, since the
resource fields are already being tested at that point.
12 years ago
Konrad Malawski
1eaf38380d
implement repos_commits API
12 years ago
Will Norris
838a7ace69
update documentation
- minor updates to README
- expand package docs to include more information on authentication, as
well as new sections for rate limiting and setting pointer values.
12 years ago
Will Norris
04b8c88e2f
sort service fields
12 years ago
Will Norris
1d887f291b
add Justin Abrahms as contributor
12 years ago
Justin Abrahms
82f9e1976e
Provide pagination to `UserService.ListFollowing`
12 years ago
Will Norris
82ae1acdcc
add Shawn Smith as contributor
12 years ago
Shawn Smith
60dc60314e
Update README.md
12 years ago
Kamil Kisiel
ea1bb06e00
Merge pull request #33 from Crisfole/fixDocumentation
Add "of" like the rest of the function docstrings
12 years ago
Christopher Pfohl
04a79835ae
Add "of" like the rest of the function docstrings
12 years ago
Billy Lynch
182cb7f67d
Added missing fields to repo struct
13 years ago