browser-compat-data icon indicating copy to clipboard operation
browser-compat-data copied to clipboard

feat(scripts): add `diff:flat` script

Open caugner opened this issue 1 year ago • 6 comments

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

caugner avatar Dec 09 '24 13:12 caugner

You can review the changes grouped, ungrouped, and with mirroring applied.

github-actions[bot] avatar Dec 09 '24 13:12 github-actions[bot]

This pull request has merge conflicts that must be resolved before it can be merged.

github-actions[bot] avatar Jan 23 '25 11:01 github-actions[bot]

This pull request has merge conflicts that must be resolved before it can be merged.

github-actions[bot] avatar Mar 19 '25 11:03 github-actions[bot]

This pull request has merge conflicts that must be resolved before it can be merged.

github-actions[bot] avatar Apr 09 '25 15:04 github-actions[bot]

This pull request has merge conflicts that must be resolved before it can be merged.

github-actions[bot] avatar May 30 '25 07:05 github-actions[bot]

This pull request has merge conflicts that must be resolved before it can be merged.

github-actions[bot] avatar Jun 13 '25 15:06 github-actions[bot]

@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.

caugner avatar Jul 17 '25 17:07 caugner