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

actions: Correctly check previews reviewer #14

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kalikiana
Copy link
Member

@kalikiana kalikiana commented Sep 30, 2022

The fix feels wrong. It makes two tests pass that were marked as broken. Either there's a bug that nobody noticed because the check would never have worked. Or there's something in the test that I don't understand.

See: https://progress.opensuse.org/issues/104781

reviewers = [
review.reviewer
for review in (request.review_list() for request in declined_requests)
for review in rejects.review_list()

Choose a reason for hiding this comment

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

Maybe it should look like this? Haven't tested it

        rejects = [
            request.review_list()
            for request in declined_requests
        ][0]
...
        reviewers = [
           review.reviewer
            for review in rejects

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.

None yet

2 participants