Increase timeout to 30s

This commit is contained in:
Half-Shot 2022-09-22 09:48:58 +01:00
parent 6a5fd81241
commit e6d08bd759
2 changed files with 3 additions and 2 deletions

1
changelog.d/493.bugfix Normal file
View File

@ -0,0 +1 @@
Fix GitLab approval/review-comments appearing as two messages when sent close together

View File

@ -39,7 +39,7 @@ const log = new LogWrapper("GitLabRepoConnection");
const md = new markdown();
const PUSH_MAX_COMMITS = 5;
const MRRCOMMENT_DEBOUNCE_MS = 5000;
const MRRCOMMENT_DEBOUNCE_MS = 30000;
export type GitLabRepoResponseItem = GetConnectionsResponseItem<GitLabRepoConnectionState>;
@ -564,7 +564,7 @@ ${data.description}`;
additionalComments = 0,
approved?: boolean,
) {
const uniqueId = `${mergeRequest?.iid}/${user.username}`;
const uniqueId = `${mergeRequest.iid}/${user.username}`;
const renderFn = () => {
const result = this.debounceMRComments.get(uniqueId);
if (!result) {