You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Behavior
Currently when you have multiple files modified by a Pull Request, which have different Reviewers assigned through CODEOWNERS. Or when you manually assign someone in addition to the CODEOWNERS then the Merge is still blocked until a CODEOWNER for each of the files modified approves the PR.
To Reproduce
Steps to reproduce the behavior:
Configure the CODEOWNERS with different owners for separate folders/files
Submit a PR that modifies at least 2 different files which has different CODEOWNERS assigned
1 of the CODEOWNERS approves the PR
The workflow will attempt to process if configured with minimum of 1 reviewer but be blocked as it is waiting on approval
See the error lines in this log extract
2020-07-27T01:33:18.0038722Z PR #26 labels do not allow merge
2020-07-27T01:33:18.0038938Z Processing PR 23!
2020-07-27T01:33:18.2470786Z PR State: open
2020-07-27T01:33:18.2471053Z PR merged: false
2020-07-27T01:33:18.2471418Z PR mergeable: true
2020-07-27T01:33:18.2482199Z PR mergeable_state: blocked
2020-07-27T01:33:18.3891059Z readyToMergeLabel:true
2020-07-27T01:33:18.3891242Z NotReadyToMergeLabel:false
2020-07-27T01:33:18.5017715Z required checks have all succeeded
2020-07-27T01:33:18.6966817Z PR #23 is mergable based on reviews
2020-07-27T01:33:18.6967033Z PR #23 is mergable based on minimum required reviews
2020-07-27T01:33:18.6967193Z Merged PR #23
2020-07-27T01:33:19.2335596Z ##[error]Waiting on code owner review from octocat.
2020-07-27T01:33:19.2340613Z ##[error]Waiting on code owner review from octocat.
2020-07-27T01:33:19.2341323Z Error: Waiting on code owner review from octocat.
2020-07-27T01:33:19.2341603Z ##[error]Waiting on code owner review from octocat.
2020-07-27T01:33:19.2432269Z Uploading runner diagnostic logs
2020-07-27T01:33:19.2539568Z Completed runner diagnostic log upload
2020-07-27T01:33:19.2539697Z Cleaning up orphan processes
Expected behavior/code
The workflow should not attempt to proceed when this is occuring.
GitHub Action Configuration (.yml, etc)
with:
repo-token: ${{ secrets.GHACTION_PAT }}enable-prmerge-automation: trueenable-prcomment-automation: trueenable-prlabel-automation: trueenable-prreviewer-frontmatter: falseenable-welcomemessage: truewelcome-message: "Thanks for opening an issue! Make sure you've followed CONTRIBUTING.md."prmerge-requireallchecks: trueprmerge-requirereviewcount: 1prmerge-method: 'merge'prmerge-deletebranch: 'true'prmerge-deletebranch-config: ''prmerge-pathcheck: trueprmerge-allowpaths: '{"any":["articles/**"]}'prreviewer-authorkey: ''prlabel-default: 'pr-onhold'prlabel-ready: 'pr-ready'prlabel-onhold: 'pr-onhold'prlabel-reviewrequired: 'review-required'prlabel-automerge: 'qualifies-auto-merge'
Possible Solution
Need to investigate how much detail is provided via API to see if it is possible to check the CODEOWNER is pending. Need to factor groups into this as when a member of the group approves the group still remains but does not block. This relates to when there is a changed file which has not approvals yet.
Additional context/Screenshots
None
The text was updated successfully, but these errors were encountered:
I think i have the same issue. We have a PR required 2 team to approve the PR and at least 2 approvals.
2 member of the same team approved the PR and its possible to merge the PR. It should not happen since the other team required review has not been made
Bug Report
Current Behavior
Currently when you have multiple files modified by a Pull Request, which have different Reviewers assigned through CODEOWNERS. Or when you manually assign someone in addition to the CODEOWNERS then the Merge is still blocked until a CODEOWNER for each of the files modified approves the PR.
To Reproduce
Steps to reproduce the behavior:
See the error lines in this log extract
Expected behavior/code
The workflow should not attempt to proceed when this is occuring.
GitHub Action Configuration (.yml, etc)
Possible Solution
Need to investigate how much detail is provided via API to see if it is possible to check the CODEOWNER is pending. Need to factor groups into this as when a member of the group approves the group still remains but does not block. This relates to when there is a changed file which has not approvals yet.
Additional context/Screenshots
None
The text was updated successfully, but these errors were encountered: