Browse Source

Fixing some lint issues

Closes #408
Juan Basso 10 years ago
parent
commit
331e3f6190
No known key found for this signature in database GPG Key ID: 609DC24D13F096C
4 changed files with 8 additions and 5 deletions
  1. +2
    -2
      github/authorizations.go
  2. +3
    -2
      github/event_types.go
  3. +2
    -0
      github/github.go
  4. +1
    -1
      github/migrations_source_import.go

+ 2
- 2
github/authorizations.go View File

@ -398,7 +398,7 @@ func (s *AuthorizationsService) DeleteGrant(id int) (*Response, error) {
return s.client.Do(req, nil)
}
// Create an impersonation OAuth token.
// CreateImpersonation creates an impersonation OAuth token.
//
// This requires admin permissions. With the returned Authorization.Token
// you can e.g. create or delete a user's public SSH key. NOTE: creating a
@ -420,7 +420,7 @@ func (s *AuthorizationsService) CreateImpersonation(username string, authReq *Au
return a, resp, err
}
// Delete an impersonation OAuth token.
// DeleteImpersonation deletes an impersonation OAuth token.
//
// NOTE: there can be only one at a time.
//


+ 3
- 2
github/event_types.go View File

@ -123,8 +123,9 @@ type GollumEvent struct {
Sender *User `json:"sender,omitempty"`
}
// DEPRECATED: IssueActivityEvent represents the payload delivered by Issue webhook
// Use IssuesEvent instead.
// IssueActivityEvent represents the payload delivered by Issue webhook.
//
// Deprecated: Use IssuesEvent instead.
type IssueActivityEvent struct {
Action *string `json:"action,omitempty"`
Issue *Issue `json:"issue,omitempty"`


+ 2
- 0
github/github.go View File

@ -638,6 +638,8 @@ func category(path string) rateLimitCategory {
}
}
// RateLimit returns the core rate limit for the current client.
//
// Deprecated: RateLimit is deprecated, use RateLimits instead.
func (c *Client) RateLimit() (*Rate, *Response, error) {
limits, resp, err := c.RateLimits()


+ 1
- 1
github/migrations_source_import.go View File

@ -163,7 +163,7 @@ func (s *MigrationService) StartImport(owner, repo string, in *Import) (*Import,
return out, resp, err
}
// QueryImport queries for the status and progress of an ongoing repository import.
// ImportProgress queries for the status and progress of an ongoing repository import.
//
// GitHub API docs: https://developer.github.com/v3/migration/source_imports/#get-import-progress
func (s *MigrationService) ImportProgress(owner, repo string) (*Import, *Response, error) {


Loading…
Cancel
Save