Modified the filterMergeCommits based on projectBranch