File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,30 +126,6 @@ jobs:
126126 }
127127 console.log('No detected merge conflicts')
128128
129- // Temporary, what does this prevent?
130- // console.log('Checking mergeable')
131- // if (pull.mergeable) {
132- // console.log('Pull request is mergeable')
133- // } else {
134- // console.log('Pull request is not mergeable, closing')
135- // await closePullRequest(pull_number)
136- // return
137- // }
138-
139- console.log('Approving pull request')
140- try {
141- await github.rest.pulls.createReview({
142- owner,
143- repo,
144- pull_number,
145- event: 'APPROVE',
146- })
147- console.log('Approved pull request')
148- } catch (error) {
149- console.error('Failed to approve the pull request.', error)
150- // Don't fail the workflow
151- }
152-
153129 console.log('Merging the pull request')
154130 // Admin merge pull request to avoid squash
155131 await github.rest.pulls.merge({
You can’t perform that action at this time.
0 commit comments