Skip to content

Commit

Permalink
Merge pull request #323 from vishnoianil/config-text
Browse files Browse the repository at this point in the history
Add help text for the config knobs
  • Loading branch information
mergify[bot] authored May 1, 2024
2 parents d7efe01 + d1d5b0d commit be5bdab
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
# Webhook URL set for the bot application to receive webhook events
ILBOT_WEBHOOK_PROXY_URL=https://smee.io/your-webhook-proxy-url

# Github App Id after bot's registration.
ILBOT_GITHUB_INTEGRATION_ID=your-github-app-id

# Webhook secret created during bot registration
ILBOT_GITHUB_WEBHOOK_SECRET=your-webhook-secret

# Github token required by workers for github operations
ILWORKER_GITHUB_TOKEN=your-github-token

# Github token required by workers for github operations
ILWORKER_GITHUB_USERNAME=your-github-username

# Github username required by workers for github operations
ILBOT_BOT_USERNAME=@instruct-lab-bot

# Private key generate for the bot app
# Fire `awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' <your-private-key>` command
# on your private key file and copy the output without any quotes to the following variable
ILBOT_GITHUB_APP_PRIVATE_KEY=your-github-app-private-key
17 changes: 9 additions & 8 deletions deploy/ansible/gobot/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
state: started
pull: always
env:
ILBOT_GITHUB_INTEGRATION_ID: "{{ app_id }}"
ILBOT_GITHUB_APP_PRIVATE_KEY: "{{ private_key }}"
ILBOT_GITHUB_WEBHOOK_SECRET: "{{ webhook_secret }}"
ILBOT_WEBHOOK_PROXY_URL: "{{ webhook_proxy_url }}"
ILBOT_REDIS: "{{ redis_ip }}:6379"
ILBOT_HTTP_ADDRESS: "127.0.0.1"
ILBOT_HTTP_PORT: "8080"
ILBOT_GITHUB_INTEGRATION_ID: "{{ app_id }}" # Github App Id after bot's registration.
ILBOT_GITHUB_APP_PRIVATE_KEY: "{{ private_key }}" # Private key generate for the bot app
ILBOT_GITHUB_WEBHOOK_SECRET: "{{ webhook_secret }}" # Webhook secret created during bot registration
ILBOT_WEBHOOK_PROXY_URL: "{{ webhook_proxy_url }}" # Webhook URL set for the bot application to receive webhook events
ILBOT_REDIS: "{{ redis_ip }}:6379" # Redis address to push and pull the jobs and results
ILBOT_HTTP_ADDRESS: "127.0.0.1" # Bot's local http server ip address
ILBOT_HTTP_PORT: "8080" # Bot's local http server port
# List of teams that are allowed to run bot commands on the PR
ILBOT_MAINTAINERS: "taxonomy-triagers,taxonomy-approvers,taxonomy-maintainers,labrador-org-maintainers,instruct-lab-bot-maintainers"
ILBOT_REQUIRED_LABELS: "skill,knowledge"
ILBOT_REQUIRED_LABELS: "skill,knowledge" # Labels required on each PR to run any bot command.

0 comments on commit be5bdab

Please sign in to comment.