Skip to content

docs(api): pushrules remove saying None is returned when not found #2369

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

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovos JohnVillalovos commented Nov 8, 2022

In groups.pushrules.get(), GitLab does not return None when no rules are found. GitLab returns a 404.

Update docs to not say it will return None

Also update docs in project.pushrules.get() to be consistent. Not
100% sure if it returns None or returns a 404, but we don't need to
document that.

Closes: #2368

@JohnVillalovos JohnVillalovos requested a review from nejch November 8, 2022 15:41
Copy link
Member

@nejch nejch left a comment

Choose a reason for hiding this comment

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

Thanks @JohnVillalovos, just a small question :)

In `groups.pushrules.get()`, GitLab does not return `None` when no
rules are found. GitLab returns a 404.

Update docs to not say it will return `None`

Also update docs in `project.pushrules.get()` to be consistent. Not
100% sure if it returns `None` or returns a 404, but we don't need to
document that.

Closes: #2368
@nejch nejch enabled auto-merge (rebase) November 8, 2022 16:31
@nejch nejch merged commit c3600b4 into main Nov 8, 2022
@nejch nejch deleted the jlvillal/push_rules branch November 8, 2022 16:34
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.

group.pushrules.get() should return None not 404.
2 participants