ttacon
f9fd615479
Add ListContributorsStats and ListCommitActivity for RepositoriesService
12 years ago
Ondrej Kupka
a4b0af1698
Add Context field to RepoStatus
Signed-off-by: Ondrej Kupka <ondra.cap@gmail.com>
12 years ago
Ondrej Kupka
b79b0b7d4a
Update PullRequest to include statuses_url
Signed-off-by: Ondrej Kupka <ondra.cap@gmail.com>
12 years ago
Will Norris
2fc0e4225b
split examples into separate directories
12 years ago
Will Norris
997e4f768a
add support for /markdown endpoint
notably, this also updates client.Do() to handle non-JSON response
bodies by passing an io.Writer as the final argument, v.
12 years ago
Will Norris
925b72582e
add Trey Tacon as contributor
12 years ago
ttacon
74a1006761
Add more functionality for pull requests
12 years ago
ttacon
eef7187591
Add get/create blobs
12 years ago
Will Norris
07f95797a3
add Hari haran as a contributor
12 years ago
Hari haran
e028073d45
Correct type name in the doc example
12 years ago
Will Norris
685ca36126
add Sander van Harmelen as contributor
12 years ago
Sander van Harmelen
290b4791fb
Added code for the Content API
With this code it should be possible to tick the ‘Content’ box in issue
#37 . The code is written after reviewing PR #64 and so is (very)
loosely based on that PR. So big thanks for the work already done by
@octavore ! I did however had some different insights about a few fixes
and as the PR hasn’t moved for the last 5 months, I thought to just
rewrite and PR and I send in a new PR hoping to come to a merge…
12 years ago
Will Norris
5066350331
add Tobias Schmidt (of SoundCloud) as contributor
12 years ago
Tobias Schmidt
20507b9963
Make HTMLURL accessible on user struct
12 years ago
Chris Schaefer
871e9750ea
Add support for RepositoriesService ListBranches
12 years ago
Will Norris
51e1f2e9e5
travis: test on go 1.2 and tip
12 years ago
Will Norris
2c53f60271
add Chris Schaefer as contributor
12 years ago
Chris Schaefer
140d508209
Implement support for RepositoriesService ListContributors
12 years ago
Ondrej Kupka
7eb3de4628
Add URL and HTMLURL to Issue
Signed-off-by: Ondrej Kupka <ondra.cap@gmail.com>
12 years ago
Will Norris
34a4afeea7
add ListOptions field to ListMembersOptions
12 years ago
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
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
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
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
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