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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants