Will Norris
a4ba4ec93d
add State field to IssueRequest
12 years ago
Will Norris
49db6714d7
include full text of creative commons license
12 years ago
Will Norris
2d7c049105
create temp file for repo release test
This is primarily needed to allow the test to run unmodified in certain
specialized environments (namely, Google's build clusters)
12 years ago
Will Norris
eecebdec70
add support for auditing 2FA of org members
This is a BREAKING CHANGE due to the change in the ListMembers method
signature.
12 years ago
Will Norris
23be1bfb88
Add Ali Afshar to as contributor
(Ali is a Googler, so no change to AUTHORS file)
12 years ago
Ali
fa53bea7f7
Add support for getting repository README files.
12 years ago
Will Norris
8ddc12bb48
add Alex Bramley as contributor
(Alex is a Googler, so no change to AUTHORS file)
12 years ago
Alex Bramley
143bda55a3
IssueRequest struct for create/edit. Fixes #75 .
Using an *Issue in IssuesService.{Create,Edit} means that the Labels
and Assignee fields do not serialize to the correct JSON representation
for the GitHub API. This change introduces an IssueRequest struct to
use instead, allowing labels and assignees to be set on create or edit.
12 years ago
Kamil Kisiel
9ede152210
Add go 1.2 to travis.yml
12 years ago
Kamil Kisiel
a08edd30ad
Add go 1.2 to travis.yml
12 years ago
Thomas Bruyelle
c248a08b00
Improve UploadReleaseAsset usage
Inspired by the Ruby version [1], UploadReleaseAsset now accepts a
simple path to a file.
The Content-Type is now determined internally using the
mime.TypeByExtension() function.
Note this version is also more flexible. Indeed, the previous version
needed an io.Reader, but actually only 3 kinds of io.Reader were bore.
This is because of http.NewRequest needs to determine the Content-Length
of the body, and it can only determine it for bytes.Buffer, bytes.Reader
or strings.Reader [2]. Note there is an issue raised about this [3].
With a path to a file, we can easily determine the file size, and then
manually add it to the request.
[1]
https://github.com/octokit/octokit.rb/blob/master/lib/octokit/client/releases.rb#L85
[2] http://golang.org/src/pkg/net/http/request.go#L447
[3] https://code.google.com/p/go/issues/detail?id=6738
12 years ago
Will Norris
f9eef4b54d
add Ondrej Kupka as contributor
12 years ago
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