1 Commits

Author SHA1 Message Date
106ed777fa feat: check for pending status after comment
keep re-trying until state changes to pending, up to 3 times. if state does not change, remove from history so another run will retry
2019-02-19 16:42:21 -07:00

View File

@@ -98,8 +98,8 @@ async function ghActionBot() {
() => createPullComment(repo, record.pull.number, PULL_RETEST_BODY, { delete: true }),
async () => {
logger.debug(`CHECK #${record.pull.number}: verify state change`);
// wait for the ci to restart
// wait for the ci to restart
await sleep(ACTION_CHECK_DELAY);
// check that the commit status is now pending