UBERF-7944: Support for not_planed close for issues (#6396)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-08-27 14:10:50 +07:00
committed by GitHub
parent e231f89e0b
commit d7820206c0
6 changed files with 81 additions and 31 deletions
@@ -204,7 +204,9 @@ export class ReviewThreadSyncManager implements DocSyncManager {
case 'resolved':
case 'unresolved': {
const isResolved = event.action === 'resolved'
const reviewData = await this.client.findOne(github.class.DocSyncInfo, { url: event.thread.node_id })
const reviewData = await this.client.findOne(github.class.DocSyncInfo, {
url: event.thread.node_id.toLocaleLowerCase()
})
if (reviewData !== undefined) {
const reviewObj: GithubReviewThread | undefined = await this.client.findOne<GithubReviewThread>(
@@ -225,12 +227,12 @@ export class ReviewThreadSyncManager implements DocSyncManager {
},
lastModified
)
await this.client.update(
await this.client.diffUpdate(
reviewObj,
{
isResolved
isResolved,
resolvedBy: account
},
false,
lastModified,
account
)