zestsoftware / zest.releaser

Python software releasing made easy and repeatable
https://zestreleaser.readthedocs.io
GNU General Public License v2.0
198 stars 62 forks source link

Allow for 'git push' retry + a bit of documentation, fixes #385 #430

Closed reinout closed 11 months ago

mauritsvanrees commented 11 months ago

I released this in 9.0.0a3.

But here it erroneously thinks that something is wrong, when in fact the push goes fine:

OK to push commits to the server? (Y/n)? 
To github.com:zestsoftware/zest.releaser.git
5b7e2e1..fc443d8  master -> master
There were errors or warnings.
Perhaps the main branch is protected?
Retry this command? [Yes/no/quit/?]
INFO     Retrying command: 'git push'                                                                                                                                                                                                       
INFO     Retrying command: 'git push'                                                                                                                                                                                                       
Everything up-to-date
There were errors or warnings.
Retry this command? [Yes/no/quit/?]n
INFO     Everything up-to-date                                                                                                                                                                                                          
To github.com:zestsoftware/zest.releaser.git
* [new tag]         9.0.0a3 -> 9.0.0a3
There were errors or warnings.
Perhaps the main branch is protected?
Retry this command? [Yes/no/quit/?]n
INFO     To github.com:zestsoftware/zest.releaser.git                                                                                                                                                                                   
         * [new tag]         9.0.0a3 -> 9.0.0a3                                                                                                                                                                                         
INFO     Finished full release. 

The info returned by GitHub is interpreted as error or warning, presumably because it is printed to /dev/stderr even though they are not errors. Let me add a screen shot with colours for clarity:

Screenshot 2023-07-25 at 17 47 38

For clarity, what I do myself, is: