mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-20 19:32:22 +02:00
Do not retry for some kind of errors in Github (#9055)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -728,7 +728,7 @@ export class PullRequestSyncManager extends IssueSyncManagerBase implements DocS
|
||||
if (allResolved) {
|
||||
// We need to complete or remove todo, in case all are resolved.
|
||||
if (!Array.from(approvedOrChangesRequested.values()).includes('CHANGES_REQUESTED')) {
|
||||
const todos = allTodos.filter((it) => it.purpose === 'fix')
|
||||
const todos = allTodos.filter((it) => it.purpose === 'fix' && it.doneOn == null)
|
||||
for (const t of todos) {
|
||||
await this.markDoneOrDeleteTodo(t)
|
||||
}
|
||||
@@ -853,7 +853,7 @@ export class PullRequestSyncManager extends IssueSyncManagerBase implements DocS
|
||||
|
||||
private async markDoneOrDeleteTodo (td: WithLookup<GithubTodo>): Promise<void> {
|
||||
// Let's mark as done in any case
|
||||
await this.client.update(td, {
|
||||
await this.client.diffUpdate(td, {
|
||||
doneOn: Date.now()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user