Ejemplo n.º 1
0
 protected override bool shouldFire()
 {
     if (targetObject == null && targetBranch == "")
     {
         return(true);
     }
     else
     {
         if (targetBranch == "" || versionManager.GetActiveBranch().GetName() == targetBranch)
         {
             ICommit commit = versionManager.GetHead();
             if (targetObject == null || commit.ObjectIsTrackedInThisCommit(targetObject) &&
                 commit.ObjectWasChangedInThisCommit(targetObject))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
Ejemplo n.º 2
0
 protected override bool shouldFire()
 {
     return(targetBranch == "" || versionManager.GetActiveBranch().GetName() == targetBranch);
 }