Closed domenic closed 1 year ago
Thanks for the review Adam! And especially for the tip on f-strings; that's much nicer.
This looks good, but we still need the ability to regenerate a single review draft in case something is wrong with the main branch at publication times.
How about allowing an argument to review.py
to specify a particular one? It will do everything but PR creation?
Yeah, I think that would work. Although you want to avoid branch swapping as well in that case so you can fix an existing branch.
My idea is to just force-delete and recreate the existing branch.
If you then force push it will it end up overwriting the correct PR?
Yeah because the branch name hasn't changed. You might have to use -u origin HEAD
to reestablish the connection to the remote branch, I guess.
Fixes #253.
I tested this locally but did not test the PR creation. But, that code is unchanged, so maybe it'll be fine?
Python review appreciated, I don't write a lot.