feat(scripts): add `diff:flat` script
Summary
Adds a new script to show changes in a way that doesn't omit any changes, while keeping the diff small.
(This works especially well if multiple features are set [from the same version] to the same version.)
Test results and supporting details
I have been sharing screenshots in PRs.
Usage:
npm run diff:flat [<pr-number>]
npm run diff:flat <head-ref> [<base-ref>]
Related issues
- https://github.com/mdn/browser-compat-data/issues/6863
You can review the changes grouped, ungrouped, and with mirroring applied.
This pull request has merge conflicts that must be resolved before it can be merged.
This pull request has merge conflicts that must be resolved before it can be merged.
This pull request has merge conflicts that must be resolved before it can be merged.
This pull request has merge conflicts that must be resolved before it can be merged.
This pull request has merge conflicts that must be resolved before it can be merged.
@queengooborg Could you please take a look at this script in the next weeks? It would be great to finally get this in main eventually.
PS: I don't really understand why the companion workflow is failing on this branch: It runs git merge-base A B where A is the current main commit, and B is the curent flat-diff commit, and for some reason that command fails without any output (no stdout/stderr) and exit code 1.