flipt-io / cup

Git Contribution Automation
https://cup.flipt.io
Apache License 2.0
76 stars 1 forks source link

fix: dont push and propose on empty commit #53

Closed GeorgeMac closed 1 year ago

GeorgeMac commented 1 year ago

Fixes #49

I am seeing weird behaviour from go-git, where it should be producing an error no change (because AllowEmptyCommits is false) and yet it is still producing empty commits. So, I have had to work around this for now with a call to status. This could be expensive, so I would like to investigate further. However, for now, this fixes the experience.

➜  cup -l debug edit flags chat-enabled
time=2023-08-15T11:43:05.027+01:00 level=DEBUG msg="No change was generated by proposal"

Additionally