A Discord bot that helps manage GitHub workflows, pull requests, and repository activities directly from Discord.
- List and check pull requests
- View repository statistics
- Manage GitHub workflows
- Interactive command interface
- Node.js 18.x or higher
- A Discord bot token
- A GitHub personal access token (optional - only needed for commands that modify repos like star, gist, workflow run)
- A Discord server where you have administrator permissions
Note: Sentinel works tokenless by default! Without a GitHub token, the bot can only access public repositories, ensuring your private repos remain secure. Some commands (like /star, /gist create, /workflow run) require authentication and will prompt you if a token isn't available.
- Clone this repository:
git clone https://github.com/qrexpy/sentinel.git
cd sentinel- Install dependencies:
npm install- Create a
.envfile in the root directory with the following variables:
DISCORD_TOKEN=your_discord_bot_token
DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_GUILD_ID=your_discord_guild_id
GITHUB_TOKEN=your_github_personal_access_token (optional)
Tokenless Mode: If you don't provide a GITHUB_TOKEN, Sentinel will work with public repositories only, keeping your private repos secure. This is the recommended setup for most users.
- Build the project:
npm run build- Start the bot:
npm start- Install the Vercel CLI:
npm install -g vercel- Login to Vercel:
vercel login- Deploy the project:
vercel-
Set up the environment variables in the Vercel dashboard:
- Go to your project settings
- Add the environment variables from your
.envfile
-
For production deployment:
vercel --prod/pr list [repo]- List all open pull requests in a repository/pr check [repo] [number]- View details of a specific pull request
/repo [repository]- View repository statistics and information
/workflow list [repo]- List available workflows in a repository/workflow run [repo] [workflow]- Trigger a specific workflow (requires token)
/issue view [repo] [number]- View details of a specific issue/issue list [repo]- List issues in a repository
/release latest [repo]- Get the latest release/release list [repo]- List all releases
/commit [repo] [sha]- View a specific commit by SHA/commit [repo]- View recent commits on a branch
/user [username]- View GitHub user profile and stats/search code [query]- Search for code across GitHub/search repositories [query]- Search for repositories/branch list [repo]- List branches in a repository/branch create [repo] [name]- Create a branch (requires token)/branch delete [repo] [name]- Delete a branch (requires token)/star [repo]- Star a repository (requires token)/gist create- Create a GitHub Gist (requires token)/markdown [text]- Render GitHub Flavored Markdown
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Sentinel integrates with GitHub to provide Discord-based GitHub management.
GitHub logos and branding used in accordance with GitHub's Logo Usage Guidelines.