Skip to the content.

Installation Guide

This guide helps you set up your own instance of GitHub Notify.

⚠️ WORK IN PROGRESS: This project is currently undergoing significant refactoring. Installation steps may change and some features might not work as expected.

Prerequisites

The easiest way to run GitHub Notify is using Docker:

# Pull the image
docker pull yourusername/github-notify:latest

# Run the container
docker run -d \
  --name github-notify \
  -p 8080:8080 \
  -v /path/to/data:/app/data \
  -e DISCORD_TOKEN=your_discord_bot_token \
  -e GITHUB_TOKEN=your_github_personal_access_token \
  yourusername/github-notify:latest

Method 2: Manual Installation

1. Clone the repository:

git clone https://github.com/yourusername/github-notify.git
cd github-notify

2. Create a .env file:

DISCORD_TOKEN=your_discord_bot_token
GITHUB_TOKEN=your_github_personal_access_token
DB_PATH=golady.db
SERVER_PORT=8080

3. Build and run:

go build -o github-notify ./cmd/main.go
./github-notify

Setting Up the Discord Bot

  1. Go to Discord Developer Portal
  2. Create a new application and set up a bot
  3. Enable the “Message Content Intent” under Bot Settings
  4. Copy your bot token and add it to the .env file
  5. Generate an invite link with the “bot” scope and permissions:
    • Read Messages/View Channels
    • Send Messages
    • Embed Links
    • Read Message History
  6. Invite the bot to your server using the link

Configuration Options

Environment Variable Description Default
DISCORD_TOKEN Your Discord Bot token (required)
GITHUB_TOKEN Your GitHub Personal Access Token (required)
DB_PATH Path to SQLite database file golady.db
SERVER_PORT Port for the webhook server 8080

Troubleshooting

Bot doesn’t respond to commands

Not receiving webhook events