Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1446 from apendragon/master
Browse files Browse the repository at this point in the history
Add "bot" support for Users API
  • Loading branch information
svanharmelen authored Apr 5, 2022
2 parents 421f307 + 271bf20 commit af1a96a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions users.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type User struct {
WebURL string `json:"web_url"`
CreatedAt *time.Time `json:"created_at"`
Bio string `json:"bio"`
Bot bool `json:"bot"`
Location string `json:"location"`
PublicEmail string `json:"public_email"`
Skype string `json:"skype"`
Expand Down Expand Up @@ -131,6 +132,7 @@ type ListUsersOptions struct {
External *bool `url:"external,omitempty" json:"external,omitempty"`
WithoutProjects *bool `url:"without_projects,omitempty" json:"without_projects,omitempty"`
WithCustomAttributes *bool `url:"with_custom_attributes,omitempty" json:"with_custom_attributes,omitempty"`
WithoutProjectBots *bool `url:"without_project_bots,omitempty" json:"without_project_bots,omitempty"`
}

// ListUsers gets a list of users.
Expand Down

0 comments on commit af1a96a

Please sign in to comment.