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

chore: renamewhat togitlab_resource#2053

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 2 commits intomainfromjlvillal/resource
Jun 4, 2022
Merged

chore: renamewhat togitlab_resource#2053

nejch merged 2 commits intomainfromjlvillal/resource
Jun 4, 2022

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovosJohnVillalovos commentedJun 4, 2022
edited
Loading

NOTE: This is based on top of PR:#2052

So can merge this and get both commits or merge#2052 first.

Naming a variablewhat makes it difficult to understand what it is
used for.

Rename it togitlab_resource as that is what is being stored.

The Gitlab documentation talks about them being resources:
https://docs.gitlab.com/ee/api/api_resources.html

This will improve code readability.

Less confusing to have it be a normal method.
Naming a variable `what` makes it difficult to understand what it isused for.Rename it to `gitlab_resource` as that is what is being stored.The Gitlab documentation talks about them being resources:https://docs.gitlab.com/ee/api/api_resources.htmlThis will improve code readability.
@codecov-commenter
Copy link

Codecov Report

Merging#2053 (c86e471) intomain (00aec96) willnot change coverage.
The diff coverage is100.00%.

@@           Coverage Diff           @@##             main    #2053   +/-   ##=======================================  Coverage   94.52%   94.52%           =======================================  Files          78       78             Lines        4972     4972           =======================================  Hits         4700     4700             Misses        272      272
FlagCoverage Δ
cli_func_v482.54% <100.00%> (ø)
py_func_v480.99% <16.66%> (ø)
unit85.47% <41.66%> (ø)

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
gitlab/cli.py100.00% <100.00%> (ø)
gitlab/v4/cli.py90.47% <100.00%> (ø)

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.

I guesswhaction should also be calledresource_action then to match, if it doesn't get too verbose. But we can do that later

@nejchnejch merged commit8d30b15 intomainJun 4, 2022
@nejchnejch deleted the jlvillal/resource branchJune 4, 2022 04:51
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nejchnejchnejch left review comments

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

Successfully merging this pull request may close these issues.

3 participants
@JohnVillalovos@codecov-commenter@nejch

[8]ページ先頭

©2009-2025 Movatter.jp