Skip to content

Commit

Permalink
Merge pull request #284 from vishnoianil/fix-gobot-rule
Browse files Browse the repository at this point in the history
Fix environment variables for gobot ansible role
  • Loading branch information
nerdalert authored Apr 20, 2024
2 parents 5c42f60 + 2cb2606 commit f9e1850
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deploy/ansible/gobot/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 3 additions & 3 deletions gobot/handlers/issue_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f9e1850

Please sign in to comment.