@@ -169,100 +169,6 @@ jobs:
169
169
- name : " Run maglnet/composer-require-checker"
170
170
run : " .phive/composer-require-checker check --config-file=$(pwd)/composer-require-checker.json"
171
171
172
- merge :
173
- name : " Merge"
174
-
175
- runs-on : " ubuntu-latest"
176
-
177
- needs :
178
- - " code-coverage"
179
- - " coding-standards"
180
- - " dependency-analysis"
181
- - " mutation-tests"
182
- - " static-code-analysis"
183
- - " tests"
184
-
185
- if : >
186
- github.event_name == 'pull_request' &&
187
- github.event.pull_request.draft == false && (
188
- github.event.action == 'opened' ||
189
- github.event.action == 'reopened' ||
190
- github.event.action == 'synchronize'
191
- ) && (
192
- (github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'composer(deps-dev)')) ||
193
- (github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'github-actions(deps)')) ||
194
- (github.actor == 'localheinz' && contains(github.event.pull_request.labels.*.name, 'merge'))
195
- )
196
-
197
- steps :
198
- - name : " Request review from @ergebnis-bot"
199
-
200
- with :
201
- github-token : " ${{ secrets.ERGEBNIS_BOT_TOKEN }}"
202
- script : |
203
- const pullRequest = context.payload.pull_request
204
- const repository = context.repo
205
-
206
- const reviewers = [
207
- "ergebnis-bot",
208
- ]
209
-
210
- await github.pulls.requestReviewers({
211
- owner: repository.owner,
212
- pull_number: pullRequest.number,
213
- repo: repository.repo,
214
- reviewers: reviewers,
215
- })
216
-
217
- - name : " Assign @ergebnis-bot"
218
-
219
- with :
220
- github-token : " ${{ secrets.ERGEBNIS_BOT_TOKEN }}"
221
- script : |
222
- const pullRequest = context.payload.pull_request
223
- const repository = context.repo
224
-
225
- const assignees = [
226
- "ergebnis-bot",
227
- ]
228
-
229
- await github.issues.addAssignees({
230
- assignees: assignees,
231
- issue_number: pullRequest.number,
232
- owner: repository.owner,
233
- repo: repository.repo,
234
- })
235
-
236
- - name : " Approve pull request"
237
-
238
- with :
239
- github-token : " ${{ secrets.ERGEBNIS_BOT_TOKEN }}"
240
- script : |
241
- const pullRequest = context.payload.pull_request
242
- const repository = context.repo
243
-
244
- await github.pulls.createReview({
245
- event: "APPROVE",
246
- owner: repository.owner,
247
- pull_number: pullRequest.number,
248
- repo: repository.repo,
249
- })
250
-
251
- - name : " Merge pull request"
252
-
253
- with :
254
- github-token : " ${{ secrets.ERGEBNIS_BOT_TOKEN }}"
255
- script : |
256
- const pullRequest = context.payload.pull_request
257
- const repository = context.repo
258
-
259
- await github.pulls.merge({
260
- merge_method: "merge",
261
- owner: repository.owner,
262
- pull_number: pullRequest.number,
263
- repo: repository.repo,
264
- })
265
-
266
172
mutation-tests :
267
173
name : " Mutation Tests"
268
174
0 commit comments