I created a feature
branch from master
and committed the changes. Before me merging into master
someone else merged he/her branch and it did not pass sonar quality check. Then, I too merged my feature
branch on master
branch but upon merging I realised that sonar quality check is failing, this happened because master
was already polluted even before my branch merge(I did not pay attention to build fail status before merging). So, now I want to set master
to a commit(which I know) where the quality check was successful. But I can't directly make any push on master
due to permissions, I need to raise pull request for it.
But before merging my feature
branch into master
, I did one more stupidity. I merged the changes from another branch which was failing at quality check. I didn't know what sonar quality checks are and thought since maven build was successful, X2 can also be merged but I made the matter worse.
Another branch : X2 ---
\
Feature branch : -- A -> B -> C -> X2 ->D -> E
/ \
Mater branch : A --->X1-------------------------- Merge commit ->
Now, I want master to be set at A again where all quality were passed. Please tell me what I can do here.
Just for information, the issues in sonar report are also from commits made before A
. It appears Sonar is somehow considering old changes as new and applying checks on it.