Running rdopkg amend && git review results in new Change-Id and new review which is inconvenient.
Changes to happen in rdopkg.actions.distgit.actions module:
Add amend=False parameter to _commit_message() and reuse last commit message Change-Id if amend==True there. Make this extensible in a way so that more information can be reused from last commit message if needed in the future (Fixes, rhbz, ...?)
Pass amend parameter to _commit_message() call in commit_distgit_update()
Pass amend=True to _commit_message() call in amend()
Running
rdopkg amend && git review
results in new Change-Id and new review which is inconvenient.Changes to happen in
rdopkg.actions.distgit.actions
module:amend=False
parameter to_commit_message()
and reuse last commit message Change-Id ifamend==True
there. Make this extensible in a way so that more information can be reused from last commit message if needed in the future (Fixes, rhbz, ...?)amend
parameter to_commit_message()
call incommit_distgit_update()
amend=True
to_commit_message()
call inamend()