Skip to content
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

Unify interface for labels #839

Merged

Conversation

lbarcziova
Copy link
Member

Needed for packit/packit-service#2334

RELEASE NOTES BEGIN
Interface for labels was unified and labels property for PullRequest and Issue now return list of PRLabel and IssueLabel respectively.
RELEASE NOTES END

Copy link
Contributor

Copy link
Member

@mfocko mfocko left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +2087 to +2088
def __str__(self) -> str:
return "Issue" + super().__str__()
Copy link
Member

Choose a reason for hiding this comment

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

I think that this in combination with the __str__ in the forge-specific classes will create a rather weird string representation, but in the end… it's still just a string, so I think it's fine.

@mfocko mfocko linked an issue Feb 8, 2024 that may be closed by this pull request
@lbarcziova lbarcziova added the mergeit When set, zuul wil gate and merge the PR. label Feb 8, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/42deff6a46d940229a7c0720065f3947

✔️ pre-commit SUCCESS in 2m 33s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit f4946d9 into packit:main Feb 8, 2024
21 checks passed
@lbarcziova lbarcziova deleted the labels-unification branch February 8, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve class structure for Labels type
2 participants