You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by li...@apache.org on 2022/05/26 02:39:05 UTC

[pulsar-test-infra] branch master updated: Rename doc label (#42)

This is an automated email from the ASF dual-hosted git repository.

liuyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-test-infra.git


The following commit(s) were added to refs/heads/master by this push:
     new 46d25de  Rename doc label (#42)
46d25de is described below

commit 46d25de72e8b464b3304da606ff3bc771889d25a
Author: Max Xu <xu...@live.cn>
AuthorDate: Thu May 26 10:39:01 2022 +0800

    Rename doc label (#42)
---
 doc-label-check/dist/index.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/doc-label-check/dist/index.js b/doc-label-check/dist/index.js
index 1425d47..3a7ce98 100644
--- a/doc-label-check/dist/index.js
+++ b/doc-label-check/dist/index.js
@@ -2525,10 +2525,10 @@ function processIssue(octokit, repo, owner, issue_number, htmlUrl, description,
         logger.debug(`--- ${htmlUrl} ---`);
         // Labels extracted from an issue description
 	      logger.debug(labelsin)
-        if (labelsin.includes('doc-added')){
+        if (labelsin.includes('doc-complete')){
           return
         }
-        const Labels=['doc','doc-required','no-need-doc','doc-info-missing']
+        const Labels=['doc','doc-required','doc-not-needed','doc-label-missing']
         const labels = labels_1.extractLabels(description, labelPattern);
         const succmessage ="@"+user1+":Thanks for providing doc info!";
         octokit.issues.addAssignees({
@@ -2604,7 +2604,7 @@ function processIssue(octokit, repo, owner, issue_number, htmlUrl, description,
         for(let index=0;index<Labels.length;index++){
           if(issuelabels.includes(Labels[index])){
               console.log(Labels[index],"issue exists");
-                if(Labels[index]=='doc-info-missing'){
+                if(Labels[index]=='doc-label-missing'){
                     isdocmis=1
                 }
           }else{
@@ -2616,7 +2616,7 @@ function processIssue(octokit, repo, owner, issue_number, htmlUrl, description,
         }
         const errmessage="@"+user1+":Thanks for your contribution. For this PR, do we need to update docs?\n(The [PR template contains info about doc](https://github.com/apache/pulsar/blob/master/.github/PULL_REQUEST_TEMPLATE.md#documentation), which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)"
         if(num==4 && isdocmis==0){
-          labelsToAdd.push("doc-info-missing")
+          labelsToAdd.push("doc-label-missing")
           yield octokit.issues.createComment({
             owner,
             repo,
@@ -2631,7 +2631,7 @@ function processIssue(octokit, repo, owner, issue_number, htmlUrl, description,
             owner,
             repo,
             issue_number,
-            name:"doc-info-missing"
+            name:"doc-label-missing"
           })
           yield octokit.issues.createComment({
             owner,
@@ -2657,7 +2657,7 @@ function processIssue(octokit, repo, owner, issue_number, htmlUrl, description,
                 owner,
                 repo,
                 issue_number,
-                name:"doc-info-missing"
+                name:"doc-label-missing"
               })
 
             yield octokit.issues.createComment({