As I’m sure we’re all aware, building and testing Rust on travis takes a long time. This is a particular pain for documentation or comment PRs where there is no actual code change so we’re spending a long building something we know will work. As an example #54085 a PR that removes 7 lines of documentation took over an hour and a half of build time.
I have built a tool called Hera using Tokei’s language detection and regular expressions detects if there has been any code changes between commits. This will even detect code that is in a code fence and treats that as code so someone updating or adding example code would still be tested but PRs like the one mentioned above would be completely skipped.
I’ve written quite a few tests and a bit of functionality such as filtering which languages count as code, but I want to get some feedback on this before doing anything more.