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
9
9
{
10
10
public class Project
11
11
{
12
- string GitPath ;
12
+ readonly string GitPath ;
13
13
14
14
public Project ( string gitPath )
15
15
{
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Query
14
14
15
15
readonly string Token ;
16
16
17
- HttpClient Client = new HttpClient ( ) ;
17
+ readonly HttpClient Client = new ( ) ;
18
18
19
19
public Query ( string token )
20
20
{
Original file line number Diff line number Diff line change @@ -103,9 +103,11 @@ static async Task AsyncMain(IConfigurationRoot config)
103
103
var mergeBranchTree = git . ParseRef ( $ "{ mergeBranchCommit } ^{{tree}}") ;
104
104
git . CheckoutDetached ( baseBranchCommit ) ;
105
105
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
+ } ;
109
111
var autoMergePullRequestsSuccess = new List < GraphPullRequest > ( ) ;
110
112
var autoMergePullRequestsFailure = new List < GraphPullRequest > ( ) ;
111
113
foreach ( var pullRequest in autoMergePullRequests )
You can’t perform that action at this time.
0 commit comments