Skip to content

Commit a95e370

Browse files
committed
✨ Update merge logic after PR creation
1 parent 81a3810 commit a95e370

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎index.js‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ module.exports = async (app) => {
3535

3636
async function checkPRStatus (context) {
3737
switch (context.event) {
38-
case 'pull_request':
39-
if (context.payload.action !== 'opened') {
40-
return
41-
}
42-
break
4338
case 'pull_request_review':
4439
if (context.payload.action !== 'submitted' || context.payload.review.state !== 'approved') {
4540
return

‎lib/pull.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ module.exports = class Pull {
2424
}
2525

2626
async routineCheck () {
27-
this.logger.debug(this.config, `[${this.config.repoPath}] Config`)
27+
// this.logger.debug(this.config, `[${this.config.repoPath}] Config`)
28+
this.logger.debug(`[${this.config.repoPath}] Routine Check`)
2829

2930
for (let i = 0; i < this.config.rules.length; i++) {
3031
const rule = this.config.rules[i]
@@ -212,7 +213,7 @@ module.exports = class Pull {
212213
rebaseable: createdPR.data.rebaseable
213214
}
214215
}
215-
await helper.timeout(1000 * i * i)
216+
await helper.timeout(3000)
216217
}
217218
return null
218219
}

0 commit comments

Comments
 (0)