Fix Hypercore PR approval

Team agreed that changes to Hypercore table access method files only
require a single approver for the time being. This might be revised in
the future.
This commit is contained in:
Mats Kindahl 2024-11-26 10:39:45 +01:00 committed by Mats Kindahl
parent 14c2c1d6e8
commit 67bcd2ea87

View File

@ -35,7 +35,10 @@ jobs:
# Get the list of modified files in this pull request
echo "Modified files: "
gh pr view $PR_NUMBER --json files
files=$(gh pr view $PR_NUMBER --json files --jq '.files.[].path | select(startswith(".github") | not)')
# Get modified files, but exclude those that are workflow
# files or are related to Hypercore table access
# method. These require only a single reviewer.
files=$(gh pr view $PR_NUMBER --json files --jq '.files.[].path | select(startswith(".github") or test("hypercore|columnar_scan") | not)')
# Get the number of approvals in this pull request
echo "Reviews: "