| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- # Server Configuration
- HOST=0.0.0.0
- PORT=3000
- WEBHOOK_PATH=/webhook
- WEBHOOK_SECRET=
- # Command Execution on Webhook Events
- # Available variables for substitution:
- # {{repo}} - Repository name (e.g., "my-repo")
- # {{full_repo}} - Full repository name (e.g., "user/my-repo")
- # {{branch}} - Branch name (e.g., "main", "feature/new-feature")
- # {{pusher}} - Username of person who triggered the event
- # {{event}} - Event type (e.g., "push", "pull_request")
- # {{commit}} - Latest commit hash (for push events)
- # {{commit_msg}} - Latest commit message (for push events)
- # {{pr_number}} - Pull request number (for PR events)
- # {{pr_action}} - Pull request action (opened, closed, etc.)
- # {{tag}} - Tag name (for create/delete tag events)
- # Push Event Commands
- # Execute command when push event is received
- WEBHOOK_PUSH_ENABLED=true
- WEBHOOK_PUSH_COMMAND=echo "Push to {{branch}} by {{pusher}} in {{repo}}"
- # Example: Run deployment script
- # WEBHOOK_PUSH_COMMAND=/path/to/deploy.sh {{branch}} {{repo}} {{pusher}}
- # Example: Only deploy main branch
- # WEBHOOK_PUSH_FILTER_BRANCH=main
- # WEBHOOK_PUSH_COMMAND=/path/to/deploy-production.sh
- # Pull Request Event Commands
- WEBHOOK_PULL_REQUEST_ENABLED=false
- WEBHOOK_PULL_REQUEST_COMMAND=echo "PR #{{pr_number}} {{pr_action}} by {{pusher}}"
- # Create Event Commands (new branch or tag)
- WEBHOOK_CREATE_ENABLED=false
- WEBHOOK_CREATE_COMMAND=echo "Created {{ref_type}} {{branch}} in {{repo}}"
- # Delete Event Commands
- WEBHOOK_DELETE_ENABLED=false
- WEBHOOK_DELETE_COMMAND=echo "Deleted {{ref_type}} {{branch}} from {{repo}}"
- # Release Event Commands
- WEBHOOK_RELEASE_ENABLED=false
- WEBHOOK_RELEASE_COMMAND=echo "Release {{tag}} {{pr_action}} in {{repo}}"
- # Global Command (runs for ALL events)
- WEBHOOK_GLOBAL_ENABLED=false
- WEBHOOK_GLOBAL_COMMAND=echo "Webhook {{event}} received for {{repo}}"
- # Command Execution Settings
- COMMAND_TIMEOUT=300000
- COMMAND_WORKING_DIR=/workspace
|