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

Add support for Project badges#507

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
gpocentek merged 1 commit intopython-gitlab:masterfromMiouge1:badges
May 29, 2018

Conversation

Miouge1
Copy link
Contributor

MartinBasti reacted with heart emoji
@Miouge1Miouge1 changed the titleAdd support for Proejct badgesAdd support for Project badgesMay 23, 2018
@Miouge1Miouge1force-pushed thebadges branch 2 times, most recently fromae24fa9 to802b2d4CompareMay 23, 2018 13:06
Copy link
Contributor

@gpocentekgpocentek left a comment

Choose a reason for hiding this comment

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

Thanks for this patch!

It would be great to have some functional testing intools/python_test_v4.py.

And extra points if you can add some documentation.

_path = '/projects/%(project_id)s/badges'
_obj_cls = ProjectBadge
_from_parent_attrs = {'project_id': 'id'}
_create_attrs = (('link_url', 'image_url'), tuple())
Copy link
Contributor

Choose a reason for hiding this comment

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

It is also possible to update the badge objects, so could you define the_update_attrs variable as well?

@@ -2505,6 +2516,7 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject):
('triggers', 'ProjectTriggerManager'),
('variables', 'ProjectVariableManager'),
('wikis', 'ProjectWikiManager'),
('badges', 'ProjectBadgeManager'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you move this line to keep the list sorted?

@Miouge1
Copy link
ContributorAuthor

@gpocentek thanks for the feedback. Can you review the latest commit, it should add tests, the update_attrs etc... ?

@gpocentekgpocentek merged commit01a41ef intopython-gitlab:masterMay 29, 2018
@gpocentek
Copy link
Contributor

Thanks!

@Miouge1
Copy link
ContributorAuthor

@gpocentek I would love to see this release in a v1.5.0 to start using it in production from PyPi

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gpocentekgpocentekgpocentek 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.

2 participants
@Miouge1@gpocentek

[8]ページ先頭

©2009-2025 Movatter.jp