[Docbot]Fix problems in docbot scripts (#26)

diff --git a/doc-label-check/dist/index.js b/doc-label-check/dist/index.js
index e786e4d..1425d47 100644
--- a/doc-label-check/dist/index.js
+++ b/doc-label-check/dist/index.js
@@ -2559,7 +2559,6 @@
             repo,
         });
         logger.debug("-------------------------------")
-        logger.debug(labelsForRepoData)
         const labelsForRepo = labelsForRepoData.map(labels_1.getName);
         const labelsToProcess = labels.filter(({ name }) => labelsForRepo.includes(name)&& !labelsToIgnore.includes(name));
         // Labels that are already applied on an issue
@@ -2569,6 +2568,7 @@
             issue_number,
         });
         const labelsOnIssue = labelsOnIssueResp.data.map(labels_1.getName);
+        logger.debug(labelsOnIssue)
         logger.debug('Labels to process:');
         logger.debug(utils_1.formatStrArray(labelsToProcess.map(labels_1.formatLabel)));
         // Remove labels
@@ -2589,11 +2589,11 @@
         // Add labels
         const shouldAdd = ({ name, checked }) => checked && !labelsOnIssue.includes(name);
 
+
         const labelsToAdd = labelsToProcess.filter(shouldAdd).map(labels_1.getName);
-        var issuelabels=utils_1.removeDuplicates(labelsToAdd.concat(labelsin));
+        logger.debug(labelsToAdd)
+        var issuelabels=utils_1.removeDuplicates((labelsToAdd.concat(labelsin)).concat(labelsOnIssue));
 	    var corrent=0
-	    console.log(issuelabels);
-	    console.log(labelsToRemove);
 	    if(labelsToRemove.length!=0){
 		    issuelabels=issuelabels.filter((x)=>labelsToRemove.some((item=>x!=item)))}
         console.log("-----------------------");
@@ -2659,15 +2659,17 @@
                 issue_number,
                 name:"doc-info-missing"
               })
+
+            yield octokit.issues.createComment({
+              owner,
+              repo,
+              issue_number,
+              body:succmessage
+              })    
             }catch{
               logger.debug('no doc info missing')
             }
-              yield octokit.issues.createComment({
-                owner,
-                repo,
-                issue_number,
-                body:succmessage
-              })
+
         }
     });
 }