Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

What's the best approach to diff data between 2 versions? I'd like to build workflows that compares data across versions and take some action.

You must be logged in to vote

Replies: 2 comments

Comment options

You could create a postprocessing script that fetches the committed file contents (via the GitHub API) and compares it to the new file contents. The filename is passed as the first argument (Deno.args[0]), which can be used to get both of those paths.
https://github.com/githubocto/flat#postprocessing

Alternatively, you could also create another step in your workflow that looks at the last commit's diff and works from there.

You must be logged in to vote
0 replies
Comment options

This is something I'm interested in to. I was thinking about doing it via the git diff, but all I need is to seed the changes into a in-memory db

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.