Extensions > API reference > repository_rule

repository_rule

A callable value that may be invoked during evaluation of the WORKSPACE file or within the implementation function of a module extension to instantiate and return a repository rule.