You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2020/10/12 19:30:31 UTC

[incubator-mxnet-ci] branch master updated: uncomment pr status bot add label and remove label functionality (#33)

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

zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet-ci.git


The following commit(s) were added to refs/heads/master by this push:
     new e9e2626  uncomment pr status bot add label and remove label functionality (#33)
e9e2626 is described below

commit e9e262682e66fae392265da079d685c006390673
Author: Chaitanya Prakash Bapat <ch...@gmail.com>
AuthorDate: Mon Oct 12 12:28:55 2020 -0700

    uncomment pr status bot add label and remove label functionality (#33)
---
 services/lambda-pr-status-labeler/pr_status_bot/PRStatusBot.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/services/lambda-pr-status-labeler/pr_status_bot/PRStatusBot.py b/services/lambda-pr-status-labeler/pr_status_bot/PRStatusBot.py
index 4bfa163..3ec214f 100644
--- a/services/lambda-pr-status-labeler/pr_status_bot/PRStatusBot.py
+++ b/services/lambda-pr-status-labeler/pr_status_bot/PRStatusBot.py
@@ -165,7 +165,7 @@ class PRStatusBot:
             if label.name.startswith('pr-') and label.name != desired_label:
                 try:
                     logging.info(f'Removing {label}')
-                    # pr.remove_from_labels(label)
+                    pr.remove_from_labels(label)
                 except Exception:
                     logging.error(f'Error while removing the label {label}')
 
@@ -179,10 +179,10 @@ class PRStatusBot:
             return
 
         logging.info(f'BOT Labels: {label}')
-        # try:
-        #     pr.add_to_labels(label)
-        # except Exception:
-        #     logging.error(f'Unable to add label {label}')
+        try:
+            pr.add_to_labels(label)
+        except Exception:
+            logging.error(f'Unable to add label {label}')
 
         # verify that label has been correctly added
         # if(self._has_desired_label(pr, label)):