Verified Commit ab1ec313 authored by Mohamed Othman's avatar Mohamed Othman Committed by GitLab
Browse files

feat: Add public_email to CreateUserOptions

Changelog: Improvements
parent 87321a15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
  "created_at": "2012-05-23T08:00:58Z",
  "bio": "",
  "location": "",
  "public_email": null,
  "public_email": "john@example.com",
  "skype": "",
  "linkedin": "",
  "twitter": "",
+1 −0
Original line number Diff line number Diff line
@@ -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) {
+9 −9
Original line number Diff line number Diff line
@@ -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",