Browse Source

minor cleanup from file refactor

mostly just typos and whitespace
Will Norris 13 years ago
parent
commit
00a3a5da1c
5 changed files with 7 additions and 7 deletions
  1. +2
    -2
      CONTRIBUTING.md
  2. +1
    -1
      github/activity.go
  3. +1
    -1
      github/activity_events_test.go
  4. +0
    -3
      github/users.go
  5. +3
    -0
      github/users_emails.go

+ 2
- 2
CONTRIBUTING.md View File

@ -75,8 +75,8 @@ the [GitHub API documentation][] is organized, so use that as your guide for
where to put new methods.
Sub-service (e.g. [Repo Hooks][]) implementations are split into separate files
based on the APIs they provide. These files are named service_api.go (e.g.
repos_hooks.go) to describe the API to service mappings.
based on the APIs they provide. These files are named service_api.go (e.g.
repos_hooks.go) to describe the API to service mappings.
[GitHub API documentation]: http://developer.github.com/v3/
[Repo Hooks]: http://developer.github.com/v3/repos/hooks/

+ 1
- 1
github/activity.go View File

@ -8,7 +8,7 @@ package github
// ActivityService handles communication with the activity related
// methods of the GitHub API.
//
// GitHub API docs: http://developer.github.com/v3/users/
// GitHub API docs: http://developer.github.com/v3/activity/
type ActivityService struct {
client *Client
}

+ 1
- 1
github/activity_events_test.go View File

@ -13,7 +13,7 @@ import (
"testing"
)
func TestEventsService_ListEventsPerformedByUser_all(t *testing.T) {
func TestActivityService_ListEventsPerformedByUser_all(t *testing.T) {
setup()
defer teardown()


+ 0
- 3
github/users.go View File

@ -39,9 +39,6 @@ type User struct {
CreatedAt *time.Time `json:"created_at,omitempty"`
}
// UserEmail represents user's email address
type UserEmail string
// Get fetches a user. Passing the empty string will fetch the authenticated
// user.
//


+ 3
- 0
github/users_emails.go View File

@ -5,6 +5,9 @@
package github
// UserEmail represents user's email address
type UserEmail string
// ListEmails lists all authenticated user email addresses
//
// GitHub API docs: http://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user


Loading…
Cancel
Save