Add rules events creating and merging branches