nodece commented on code in PR #70:
URL: https://github.com/apache/pulsar-test-infra/pull/70#discussion_r965725119


##########
docbot/action.go:
##########
@@ -47,11 +47,16 @@ func NewActionWithClient(ctx context.Context, ac 
*ActionConfig, client *github.C
        }
 }
 
+const (
+       openedActionType = "opened"
+       editedActionType = "edited"
+)
+
 func (a *Action) Run(prNumber int, actionType string) error {
        a.prNumber = prNumber
 
        switch actionType {
-       case "opened", "edited", "labeled", "unlabeled":
+       case openedActionType, editedActionType:

Review Comment:
   Good catch!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to