Skip to content

Commit 6e33e46

Browse files
authored
Remove non-functional parts of repo sync (#37902)
1 parent 8b6054a commit 6e33e46

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

.github/workflows/repo-sync.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff 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({

0 commit comments

Comments
 (0)