Skip to content

Conversation

aksh1618
Copy link
Owner

I've modified the update_gist function to fetch the current Gist content and compare it with the new content before performing an update.

If the content is identical, the update is skipped, and a message is printed to the console. This prevents creating empty revisions in the Gist history when the stats have not changed.

I've also added unit tests to verify the new behavior, ensuring that the Gist is updated only when the content has actually changed.

I've modified the `update_gist` function to fetch the current Gist content and compare it with the new content before performing an update.

If the content is identical, the update is skipped, and a message is printed to the console. This prevents creating empty revisions in the Gist history when the stats have not changed.

I've also added unit tests to verify the new behavior, ensuring that the Gist is updated only when the content has actually changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant