Adding base-sha to store-pending-ref-and-trigger-build