Skip to content

Back up review file before upload#14

Open
rmloveland wants to merge 1 commit intojordanlewis:masterfrom
rmloveland:20191015-re-comments-file-bak
Open

Back up review file before upload#14
rmloveland wants to merge 1 commit intojordanlewis:masterfrom
rmloveland:20191015-re-comments-file-bak

Conversation

@rmloveland
Copy link

This change does the dumbest thing possible: make a backup of the review
file with a .bak extension before attempting to push it back up to
Github.

This addresses the main concern expressed in #10, which is that under
the current behavior if the API call to Github fails, the temp
file still gets deleted, and you can lose a lot of work.

This change does the dumbest thing possible: make a backup of the review
file with a .bak extension before attempting to push it back up to
Github.

This addresses the main concern expressed in jordanlewis#10, which is that under
the current behavior if the API call to Github fails, the temp
file *still gets deleted*, and you can lose a lot of work.
@jordanlewis
Copy link
Owner

Will this lead to a lot of bak files everywhere that don't get cleaned up? :)

If you add a thing that deletes the bak file after a successful push that would feel more appealing to me if you wouldn't mind!

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.

2 participants