Create a server side filter for builders along with the relevant configurations in the builder json file. This is going to be used to choose which builders will run give the list of affected files in a PR.
Something like the following in the json file:
run_if: '['dev/', 'packages/flutter/', 'packages/flutter_test/', 'packages/flutter_tools/']
Then when getting the list of builders to run in the webhook:
getFilteredBuilders(list_of_affected_files_from_pr)