todo: build commit message and split the revision_config loop into a helper method and test