We check style with my hacky style checker and also make sure the email
address of the author doesn't have noreply in it. Right now the style
checking is only the last 10 commits, which may include other people's
work.
Sponsored by: Netflix
Differential D40261
ci: Add basic pull request checker imp on May 24 2023, 10:28 PM. Authored by Tags None Referenced Files
Subscribers
Details
We check style with my hacky style checker and also make sure the email Sponsored by: Netflix
Diff Detail
Event TimelineComment Actions Enabling this as an experiment seems plausible. It might be nice to start with excluding contrib out of the gate to avoid generating too much noise.
Comment Actions @imp , regarding your question whether it's possible not to hard-code main. Well, with every iteration my thoughts go deeper and complicate the things :) Nevertheless, I've dumped all my current research results and thoughts about this. Please, find it within the SVG attached (this is draw.io). Excuse me for such, probably, unusual format. I decided to leave the long read as is with the sketches, maybe it will be found helpful to explain the details for others and bring additional ideas. A respective tl;dr could be as follows:
Comment Actions @imp , I've created a PR to trigger the test. It's https://github.com/freebsd/freebsd-src/pull/751. The test passed. It can be simply closed without merge. Comment Actions @imp , considering your experience that GitHub fork's main can be left out-of-date (it's obvious project specifics, GitHub is not the origin for committers), if you see that comparing to project mainstream main branch would give better results in more cases, then we could do it. This commit can be used as an example: https://github.com/ihoro/freebsd-src/commit/0d273e225a3ea6e66d4f80e9e1f76c9ddca1454c. But external contributors, I guess, will usually have their main and some-fix branches in sync, at least, they are expected to be "around" in time to allow fetch --depth=N main find the ancestor. Unfortunately, I'm not aware of the statistics among FreeBSD contributors and committers style of work on GitHub platform to suggest now what could be better.
|