Skip to content

Slack Integration

OpenCodeHub’s Slack integration sends real-time notifications for repository events and allows quick actions directly from Slack channels.

EventNotificationActions
Pull Request openedTitle, author, branchReview, Approve
PR approved / changes requestedReviewer, statusView diff
PR mergedMerger, commit countView commit
CI failedJob name, failure stepView logs, Retry
Issue created / assignedTitle, assigneeView, Comment
Release publishedVersion, changelogView release
  1. Go to api.slack.com/apps
  2. Click Create New AppFrom scratch
  3. Name it “OpenCodeHub” and select your workspace

Add the following Bot Token Scopes:

chat:write
chat:write.public
im:write
users:read
files:write
  1. Click Install to Workspace
  2. Copy the Bot User OAuth Token (starts with xoxb-)

Add to your .env:

Terminal window
SLACK_ENABLED=true
SLACK_BOT_TOKEN=xoxb-your-token-here
SLACK_SIGNING_SECRET=your-signing-secret

Or configure via the web UI:

  1. Go to Organization SettingsIntegrationsSlack
  2. Paste the bot token and signing secret
  3. Click Test Connection

Per-repository settings:

  1. Go to RepositorySettingsIntegrations
  2. Enable Slack notifications
  3. Choose channel and events
/och prs [repo] List open PRs
/och review <pr-number> Quick review a PR
/och queue [repo] Show merge queue status
/och issues [repo] List open issues
  1. Verify the bot is invited to the channel (/invite @OpenCodeHub)
  2. Check repository subscription settings
  3. Verify SLACK_BOT_TOKEN is correct
  • Enable notification batching
  • Filter by event type in repository settings
  • Use @mentions only mode for noisy repos