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

Add "bot" support for Users API #1446

Merged
merged 2 commits into from
Apr 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions users.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ type User struct {
WebsiteURL string `json:"website_url"`
Organization string `json:"organization"`
JobTitle string `json:"job_title"`
Bot bool `json:"bot"`
apendragon marked this conversation as resolved.
Show resolved Hide resolved
ExternUID string `json:"extern_uid"`
Provider string `json:"provider"`
ThemeID int `json:"theme_id"`
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