Loading testdata/get_user_bot.json +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ "created_at": "2012-05-23T08:00:58Z", "bio": "", "location": "", "public_email": null, "public_email": "john@example.com", "skype": "", "linkedin": "", "twitter": "", Loading users.go +1 −0 Original line number Diff line number Diff line Loading @@ -527,6 +527,7 @@ type CreateUserOptions struct { Username *string `url:"username,omitempty" json:"username,omitempty"` WebsiteURL *string `url:"website_url,omitempty" json:"website_url,omitempty"` ViewDiffsFileByFile *bool `url:"view_diffs_file_by_file,omitempty" json:"view_diffs_file_by_file,omitempty"` PublicEmail *string `url:"public_email,omitempty" json:"public_email,omitempty"` } func (s *UsersService) CreateUser(opt *CreateUserOptions, options ...RequestOptionFunc) (*User, *Response, error) { Loading users_test.go +9 −9 Original line number Diff line number Diff line Loading @@ -145,9 +145,9 @@ func TestCreatedBy(t *testing.T) { WebURL: "http://localhost:3000/project_1_bot_3cca1d029554e372cf8f39df76bf507d", CreatedAt: Ptr(time.Date(2012, time.May, 23, 8, 0, 58, 0, time.UTC)), Bot: true, PublicEmail: "john@example.com", // Bio: "Bio of John Smith", // Location: "USA", // PublicEmail: "john@example.com", // Skype: "john_smith", // Linkedin: "john_smith", // Twitter: "john_smith", Loading Loading
testdata/get_user_bot.json +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ "created_at": "2012-05-23T08:00:58Z", "bio": "", "location": "", "public_email": null, "public_email": "john@example.com", "skype": "", "linkedin": "", "twitter": "", Loading
users.go +1 −0 Original line number Diff line number Diff line Loading @@ -527,6 +527,7 @@ type CreateUserOptions struct { Username *string `url:"username,omitempty" json:"username,omitempty"` WebsiteURL *string `url:"website_url,omitempty" json:"website_url,omitempty"` ViewDiffsFileByFile *bool `url:"view_diffs_file_by_file,omitempty" json:"view_diffs_file_by_file,omitempty"` PublicEmail *string `url:"public_email,omitempty" json:"public_email,omitempty"` } func (s *UsersService) CreateUser(opt *CreateUserOptions, options ...RequestOptionFunc) (*User, *Response, error) { Loading
users_test.go +9 −9 Original line number Diff line number Diff line Loading @@ -145,9 +145,9 @@ func TestCreatedBy(t *testing.T) { WebURL: "http://localhost:3000/project_1_bot_3cca1d029554e372cf8f39df76bf507d", CreatedAt: Ptr(time.Date(2012, time.May, 23, 8, 0, 58, 0, time.UTC)), Bot: true, PublicEmail: "john@example.com", // Bio: "Bio of John Smith", // Location: "USA", // PublicEmail: "john@example.com", // Skype: "john_smith", // Linkedin: "john_smith", // Twitter: "john_smith", Loading