astrofrog / astrofrog/batchpr

ENH: API to query whether any real changes are made

Open
#34 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Case study: I give it logic to do some update in batch mode. But perhaps those updates are already done in select repositories by others. In that case, my logic would still run but really results in zero diff. The current Updater does not check whether there is actually any real changes before attempting to commit.

Desired outcome: New API to return bool on whether there is any real changes done. And then use this API in the rest of the Updater to be no-op if that is the case.

Current behavior: It crashes when trying to make an empty commit: `Command 'git commit -m "some message"' failed`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.