Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs(api): pushrules remove sayingNone 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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nejch merged 1 commit intomainfromjlvillal/push_rules
Nov 8, 2022

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovosJohnVillalovos commentedNov 8, 2022
edited
Loading

Ingroups.pushrules.get(), GitLab does not returnNone when no rules are found. GitLab returns a 404.

Update docs to not say it will returnNone

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

Closes:#2368

nejch reacted with thumbs up emoji
Copy link
Member

@nejchnejch 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 norules 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. Not100% sure if it returns `None` or returns a 404, but we don't need todocument that.Closes:#2368
@nejchnejchenabled auto-merge (rebase)November 8, 2022 16:31
@nejchnejch merged commitc3600b4 intomainNov 8, 2022
@nejchnejch deleted the jlvillal/push_rules branchNovember 8, 2022 16:34
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nejchnejchnejch approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

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

[8]ページ先頭

©2009-2025 Movatter.jp