Fetch references before showing not deployed commits [#41227527]
Better messages in `shelly deploys pending`
Bump version to 0.1.40
Added version 0.1.40 to the changelog