JBTM-1633 check if the pull is closed first
Updated to clean up some inconsistences at release time