57
57
static function (int $ errorCode , string $ message = '' , string $ file = '' , int $ line = 0 ): bool {
58
58
throw new ErrorException ($ message , 0 , $ errorCode , $ file , $ line );
59
59
},
60
- E_STRICT | E_NOTICE | E_WARNING
60
+ E_STRICT | E_NOTICE | E_WARNING ,
61
61
);
62
62
63
63
$ variables = EnvironmentVariables::fromEnvironment (new ImportGpgKeyFromStringViaTemporaryFile ());
@@ -72,7 +72,7 @@ static function (int $errorCode, string $message = '', string $file = '', int $l
72
72
$ getMilestone = new GetMilestoneFirst100IssuesAndPullRequests (new RunGraphQLQuery (
73
73
$ makeRequests ,
74
74
$ httpClient ,
75
- $ githubToken
75
+ $ githubToken,
76
76
));
77
77
$ changelogExists = new ChangelogExistsViaConsole ();
78
78
$ checkoutBranch = new CheckoutBranchViaConsole ();
@@ -83,12 +83,12 @@ static function (int $errorCode, string $message = '', string $file = '', int $l
83
83
$ checkoutBranch ,
84
84
$ commit ,
85
85
$ push ,
86
- $ logger
86
+ $ logger,
87
87
);
88
88
$ createCommitText = new CreateReleaseTextThroughChangelog (JwageGenerateChangelog::create (
89
89
$ makeRequests ,
90
90
$ httpClient ,
91
- new GitHubOAuthToken ($ githubToken )
91
+ new GitHubOAuthToken ($ githubToken ),
92
92
));
93
93
$ createReleaseText = new MergeMultipleReleaseNotes ([
94
94
new CreateReleaseTextViaKeepAChangelog ($ changelogExists , new SystemClock (new DateTimeZone ('UTC ' ))),
@@ -97,14 +97,14 @@ static function (int $errorCode, string $message = '', string $file = '', int $l
97
97
$ createRelease = new CreateReleaseThroughApiCall (
98
98
$ makeRequests ,
99
99
$ httpClient ,
100
- $ githubToken
100
+ $ githubToken,
101
101
);
102
102
$ bumpChangelogVersion = new BumpAndCommitChangelogVersionViaKeepAChangelog (
103
103
$ changelogExists ,
104
104
$ checkoutBranch ,
105
105
$ commit ,
106
106
$ push ,
107
- $ logger
107
+ $ logger,
108
108
);
109
109
110
110
$ application = new Application (Versions::rootPackageName (), Versions::getVersion ('laminas/automatic-releases ' ));
@@ -120,7 +120,7 @@ static function (int $errorCode, string $message = '', string $file = '', int $l
120
120
$ createReleaseText ,
121
121
new CreateTagViaConsole (),
122
122
$ push ,
123
- $ createRelease
123
+ $ createRelease,
124
124
),
125
125
new CreateMergeUpPullRequest (
126
126
$ variables ,
@@ -133,8 +133,8 @@ static function (int $errorCode, string $message = '', string $file = '', int $l
133
133
new CreatePullRequestThroughApiCall (
134
134
$ makeRequests ,
135
135
$ httpClient ,
136
- $ githubToken
137
- )
136
+ $ githubToken,
137
+ ),
138
138
),
139
139
new SwitchDefaultBranchToNextMinor (
140
140
$ variables ,
@@ -145,25 +145,25 @@ static function (int $errorCode, string $message = '', string $file = '', int $l
145
145
new SetDefaultBranchThroughApiCall (
146
146
$ makeRequests ,
147
147
$ httpClient ,
148
- $ githubToken
148
+ $ githubToken,
149
149
),
150
- $ bumpChangelogVersion
150
+ $ bumpChangelogVersion,
151
151
),
152
152
new BumpChangelogForReleaseBranch (
153
153
$ variables ,
154
154
$ loadEvent ,
155
155
$ fetch ,
156
156
$ getCandidateBranches ,
157
- $ bumpChangelogVersion
157
+ $ bumpChangelogVersion,
158
158
),
159
159
new CreateMilestones (
160
160
$ loadEvent ,
161
161
new CreateMilestoneThroughApiCall (
162
162
$ makeRequests ,
163
163
$ httpClient ,
164
164
$ githubToken ,
165
- $ logger
166
- )
165
+ $ logger,
166
+ ),
167
167
),
168
168
]);
169
169
0 commit comments