GitHub Projects V2 Testing Setup - Complete โ
Date: 2026-01-13 Status: โ Complete Related PR: #60 Fix priorities not syncing with Github issue submissions
Problem Statement / Goal โ
Enable isolated local testing of the GitHub Projects V2 integration without affecting production Discord server, Railway deployment, or production GitHub project.
Solution Overview โ
Created .env.testing file for local testing environment only:
- Test Discord Guild:
1460766994780520500(separate test server, not production) - Test GitHub Project:
Lantern App Testing(keeps test issues separate) - Test Milestone:
Testing(tags all test submissions) - Firebase Database: Dev database (
lantern-app-dev) - safe for testing - Usage: Local machine only, never committed to repo
Environment Clarification โ
Three distinct environments:
| Environment | Purpose | Guild | Database | Location | Config |
|---|---|---|---|---|---|
| Local Testing | Dev testing before deployment | Test guild | Dev DB | Your machine | .env.testing |
| Dev Deployed | Staging/testing after merge | Dev guild | Dev DB | Railway | Railway env vars |
| Production | Live bot for users | Prod guild | Prod DB | Railway | Railway env vars |
Files Changed/Created โ
- discord-bot/.env.testing - Pre-configured for local testing (gitignored)
- discord-bot/DEPLOYMENT.md - Updated with environment explanation and local testing commands
- docs/CHANGELOG.md - Updated with testing setup entry
- docs/worklog/GITHUB_PROJECTS_V2_TESTING_SETUP.md - This worklog entry
Local Testing Procedure โ
Quick Start โ
bash
cd discord-bot
# Swap to test configuration
mv .env .env.prod
cp .env.testing .env
# Run bot locally
npm start
# Test in Discord test server...
# When done, restore production config
# (Ctrl+C to stop bot first)
# mv .env .env.testing
# mv .env.prod .envTest Cases โ
- Feature Request (High Priority) โ P1 in project
- Bug Report (Critical Priority) โ P0 in project
- Medium Priority Feature โ P2 in project
- Low Priority Feature โ P3 in project
Verification โ
- โ Issues created in GitHub
- โ Issues appear in "Lantern App Testing" project (not production project)
- โ Priority field populated correctly (P0/P1/P2/P3)
- โ Milestone "Testing" attached
- โ Bot logs show no errors
- โ Test data only in dev Firebase database
- โ Production bot unaffected during testing
Testing Results โ
Status: Ready to begin testing Setup Complete: Yes Issues Found: None yet - testing in progress
Next Steps โ
- โ
Test channel IDs obtained and added to
.env.testing - โณ Run full test suite (all four priority levels)
- โณ Verify all success cases
- โณ Document any issues found
- Ready to merge PR after all tests pass
Notes โ
- Single Discord bot instance handles both test and production (one bot app, multiple guilds)
.env.testingnever committed - secure and isolated- Swap between
.envand.env.testingto switch environments - Production/Railway completely unaffected during local testing
- All test data in dev Firebase database - clean isolation