Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "bot" support for Users API #1446

Merged
merged 2 commits into from Apr 5, 2022
Merged

Add "bot" support for Users API #1446

merged 2 commits into from Apr 5, 2022

Conversation

apendragon
Copy link
Contributor

Since Project Access Token and Group Access Token, there is a "bot"
field in the User json structure returned by the API.

See: https://docs.gitlab.com/ee/api/users.html#single-user

Also, from 14.10 it is possible to exclude bots from search result using
the "without_project_bots" boolean request parameter.

It has been added in the ListUsersOptions struct.

Since Project Access Token and Group Access Token, there is a "bot"
field in the User json structure returned by the API.

See: https://docs.gitlab.com/ee/api/users.html#single-user

Also, from 14.10 it is possible to exclude bots from search result using
the "without_project_bots" boolean request parameter.

It has been added in the ListUsersOptions struct.
users.go Outdated Show resolved Hide resolved
Moved the "Bot" field between "Bio" and "Location" as described in the
Single User documentation
(https://docs.gitlab.com/ee/api/users.html#for-user).
Copy link
Member

@svanharmelen svanharmelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @apendragon 👍🏻

@svanharmelen svanharmelen merged commit af1a96a into xanzy:master Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants