A simple Node.js TypeScript server that pings your Slack channel daily with bug status updates from your Linear board.
-
Install dependencies:
npm install
-
Configure environment variables:
cp .env.example .env
Then edit
.env
with your actual API keys and configuration. -
Development:
npm run dev
-
Build for production:
npm run build npm start
SLACK_BOT_TOKEN
: Your Slack bot token (starts withxoxb-
)SLACK_CHANNEL_ID
: The channel ID where updates will be postedLINEAR_API_KEY
: Your Linear API keyLINEAR_TEAM_ID
: Your Linear team IDPORT
: Server port (default: 3000)
GET /health
- Health check endpointPOST /api/update-bug-status
- Trigger bug status update (used by cron)
This server is configured to deploy to Vercel with a daily cron job that runs at 9 AM on weekdays (Monday-Friday).
- Connect your repository to Vercel
- Add environment variables in Vercel dashboard
- Deploy - the cron job will automatically trigger daily
- Integrate with Linear API to fetch bug data
- Integrate with Slack API to send formatted messages
- Add bug status analysis and reporting logic