File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
src/NerdBank.GitVersioning/CloudBuildServices Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ public class BitbucketCloud : ICloudBuild
2020    public  bool  IsPullRequest  =>  ! string . IsNullOrWhiteSpace ( Environment . GetEnvironmentVariable ( "BITBUCKET_PR_ID" ) ) ; 
2121
2222    /// <inheritdoc /> 
23-     public  string  BuildingBranch  =>  Environment . GetEnvironmentVariable ( "BITBUCKET_BRANCH" ) ; 
23+     public  string  BuildingBranch  =>  CloudBuild . ShouldStartWith ( Environment . GetEnvironmentVariable ( "BITBUCKET_BRANCH"  ) ,   "refs/heads/ ") ; 
2424
2525    /// <inheritdoc /> 
26-     public  string  BuildingTag  =>  Environment . GetEnvironmentVariable ( "BITBUCKET_TAG" ) ; 
26+     public  string  BuildingTag  =>  CloudBuild . ShouldStartWith ( Environment . GetEnvironmentVariable ( "BITBUCKET_TAG"  ) ,   "refs/tags/ ") ; 
2727
2828    /// <inheritdoc /> 
2929    public  string  GitCommitId  =>  Environment . GetEnvironmentVariable ( "BITBUCKET_COMMIT" ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments