RFR: pr: detect clean backports
ehelin at openjdk.java.net
Thu Oct 15 12:39:24 UTC 2020
please review this patch that adds support to `CheckRun` for identifying "clean" backport pull requests. A backport
pull request is "clean" if the diff of the pull request is the same as the diff for the original _modulo_ exact lines
being changed. That is, the same backport pull request must contain the same _changes_ as the original commit, but the
changes don't have to be applied to the exact same lines. The result is equivalent to running `patch` and passing a
fuzzing factor via `--fuzz` that is the same as the number of context lines.
A clean backport also doesn't require reviews. Note though that non-Committers still need a sponsor. I plan to make
this configurable in a follow-up patch.
- [x] Added a bunch of tests
- [x] `make test` passes on Linux x64
- pr: detect clean backports
Stats: 634 lines in 5 files changed: 609 ins; 12 del; 13 mod
Fetch: git fetch https://git.openjdk.java.net/skara pull/885/head:pull/885
More information about the skara-dev