File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace Open_Rails_Code_Bot.Git
99{
1010 public class Project
1111 {
12- string GitPath ;
12+ readonly string GitPath ;
1313
1414 public Project ( string gitPath )
1515 {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Query
1414
1515 readonly string Token ;
1616
17- HttpClient Client = new HttpClient ( ) ;
17+ readonly HttpClient Client = new ( ) ;
1818
1919 public Query ( string token )
2020 {
Original file line number Diff line number Diff line change @@ -103,9 +103,11 @@ static async Task AsyncMain(IConfigurationRoot config)
103103 var mergeBranchTree = git . ParseRef ( $ "{ mergeBranchCommit } ^{{tree}}") ;
104104 git . CheckoutDetached ( baseBranchCommit ) ;
105105 var baseBranchVersion = String . Format ( gitHubConfig [ "versionFormat" ] ?? "{0}" , git . Describe ( gitHubConfig [ "versionDescribeOptions" ] ?? "" ) ) ;
106- var mergeBranchParents = new List < string > ( ) ;
107- mergeBranchParents . Add ( mergeBranchCommit ) ;
108- mergeBranchParents . Add ( baseBranchCommit ) ;
106+ var mergeBranchParents = new List < string >
107+ {
108+ mergeBranchCommit ,
109+ baseBranchCommit
110+ } ;
109111 var autoMergePullRequestsSuccess = new List < GraphPullRequest > ( ) ;
110112 var autoMergePullRequestsFailure = new List < GraphPullRequest > ( ) ;
111113 foreach ( var pullRequest in autoMergePullRequests )
You can’t perform that action at this time.
0 commit comments