1 Commits

Author SHA1 Message Date
8fc14f8c88 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:39:59 -07:00

View File

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