Skip to content

akshatag/bugrotation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bug Rotation Slack Bot

A simple Node.js TypeScript server that pings your Slack channel daily with bug status updates from your Linear board.

Setup

  1. Install dependencies:

    npm install
  2. Configure environment variables:

    cp .env.example .env

    Then edit .env with your actual API keys and configuration.

  3. Development:

    npm run dev
  4. Build for production:

    npm run build
    npm start

Environment Variables

  • SLACK_BOT_TOKEN: Your Slack bot token (starts with xoxb-)
  • SLACK_CHANNEL_ID: The channel ID where updates will be posted
  • LINEAR_API_KEY: Your Linear API key
  • LINEAR_TEAM_ID: Your Linear team ID
  • PORT: Server port (default: 3000)

Endpoints

  • GET /health - Health check endpoint
  • POST /api/update-bug-status - Trigger bug status update (used by cron)

Deployment

This server is configured to deploy to Vercel with a daily cron job that runs at 9 AM on weekdays (Monday-Friday).

  1. Connect your repository to Vercel
  2. Add environment variables in Vercel dashboard
  3. Deploy - the cron job will automatically trigger daily

Next Steps

  • Integrate with Linear API to fetch bug data
  • Integrate with Slack API to send formatted messages
  • Add bug status analysis and reporting logic

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published