Fixed bug so that branch comparison is based on equals instead of contains. Updated code to trigger build when merge is requested but successful build does not exist for latest commits