From 2cb26061c111b656f198b4f6f71c2df3aafbc817 Mon Sep 17 00:00:00 2001 From: Anil Vishnoi Date: Fri, 19 Apr 2024 15:27:58 -0700 Subject: [PATCH] Fix environment variables for gobot ansible role Piggy backing some log fixes. Signed-off-by: Anil Vishnoi --- deploy/ansible/gobot/tasks/main.yml | 4 ++-- gobot/handlers/issue_comment.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy/ansible/gobot/tasks/main.yml b/deploy/ansible/gobot/tasks/main.yml index 2cf91837..5b92500f 100644 --- a/deploy/ansible/gobot/tasks/main.yml +++ b/deploy/ansible/gobot/tasks/main.yml @@ -20,5 +20,5 @@ ILBOT_REDIS: "{{ redis_ip }}:6379" ILBOT_HTTP_ADDRESS: "127.0.0.1" ILBOT_HTTP_PORT: "8080" - ILBOT_MAINTAINERS: "taxonomy-triagers taxonomy-approvers taxonomy-maintainers labrador-org-maintainers instruct-lab-bot-maintainers" - ILBOT_REQUIRED_LABELS: "skill knowledge" + ILBOT_MAINTAINERS: "taxonomy-triagers,taxonomy-approvers,taxonomy-maintainers,labrador-org-maintainers,instruct-lab-bot-maintainers" + ILBOT_REQUIRED_LABELS: "skill,knowledge" diff --git a/gobot/handlers/issue_comment.go b/gobot/handlers/issue_comment.go index 3776fb50..a5bf4cff 100644 --- a/gobot/handlers/issue_comment.go +++ b/gobot/handlers/issue_comment.go @@ -326,7 +326,7 @@ func (h *PRCommentHandler) generateCommand(ctx context.Context, client *github.C isAllowed := h.checkAuthorPermission(ctx, client, prComment) if !isAllowed { - params.Comment = fmt.Sprintf("User %s is not not allowed to run the instruct bot. Only %v teams are allowed to access the bot functions.", prComment.author, h.Maintainers) + params.Comment = fmt.Sprintf("User %s is not allowed to run the InstructLab bot. Only %v teams are allowed to access the bot functions.", prComment.author, h.Maintainers) err := util.PostPullRequestComment(ctx, client, params) if err != nil { @@ -372,7 +372,7 @@ func (h *PRCommentHandler) precheckCommand(ctx context.Context, client *github.C // Check if user is part of the teams that are allowed to enable the bot isAllowed := h.checkAuthorPermission(ctx, client, prComment) if !isAllowed { - params.Comment = fmt.Sprintf("User %s is not not allowed to run the instruct bot. Only %v teams are allowed to access the bot functions.", prComment.author, h.Maintainers) + params.Comment = fmt.Sprintf("User %s is not allowed to run the InstructLab bot. Only %v teams are allowed to access the bot functions.", prComment.author, h.Maintainers) err := util.PostPullRequestComment(ctx, client, params) if err != nil { @@ -418,7 +418,7 @@ func (h *PRCommentHandler) sdgSvcCommand(ctx context.Context, client *github.Cli // Check if user is part of the teams that are allowed to enable the bot isAllowed := h.checkAuthorPermission(ctx, client, prComment) if !isAllowed { - params.Comment = fmt.Sprintf("User %s is not not allowed to run the InstructLab bot. Only %v teams are allowed to access the bot functions.", prComment.author, h.Maintainers) + params.Comment = fmt.Sprintf("User %s is not allowed to run the InstructLab bot. Only %v teams are allowed to access the bot functions.", prComment.author, h.Maintainers) err := util.PostPullRequestComment(ctx, client, params) if err != nil {