Skip to content

Bug in action-required-review #41933

@tureck1y

Description

Impacted plugin

Jetpack

Quick summary

action-required-review will never satisfy requirements if @someuser is an author of a PR and requirements are configured like this:

  teams:
    - all-of:
      - some-team
      - '@someUser'

It's impossible to make a self-review and impossible to merge the PR. An empty team should be excluded from the requirements check. An empty virtual team for @someuser in this case/

Steps to reproduce

  1. Configure requirements
- name: Misc
  paths: unmatched
  teams:
    - all-of:
      - some-team
      - '@someUser'
  1. Open a PR by @someuser as an author
  2. Get approval from any user of "some-team"

Result: Requirement "Misc" is not satisfied by the existing reviews.

Expected result: Requirement "Misc" is satisfied by the existing reviews.

Site owner impact

Fewer than 20% of the total website/platform users

Severity

Major

What other impact(s) does this issue have?

No response

If a workaround is available, please outline it here.

No response

Platform (Simple and/or Atomic)

No response

Activity

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

Metadata

Assignees

Type

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions