shepherd
shepherd copied to clipboard
Additional filters before checkout repo
I'd like to be able to run some lightweight filters that can't be encoded in the GitHub search API before checking out the repo to do heavier weight repos.
For example, my search results are matching repos that has node_modules checked in and the query is matching files inside of node_modules.
For example, a url like this: riphunter07/ATproject/ATproject/node_modules.old/react-native/jest/setup.js
.
I could encode NOT node_modules
in my query, but I think that would exclude modules with:
const foo = require('./node_modules/foo/foo.js');
Github lets you do searches with file names but I don't think that lets you do negative file name searches:
Libraries/Renderer/shims/ReactNative fork:false language:JavaScript filename: NOT native_modules NOT flow-typed
Being able to do this early filtering (on paths, or even other things that GitHub returns as part of the API search results) would let me avoid having to clone hundreds of repos that are using React Native to realize my search is finding code in react-native core in each of these projects.