Fix skill-match project alerts (fire on project going live) - #187
Merged
Conversation
Volunteers could opt into "email me when a project matches my skills" (email_digest='match'), but no job ever read that value, so the alert never fired. Wire it to fire per-project the moment it goes live (org-project create, or admin approval of a proposed project) instead of batching on a cron. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y7LqHwh4oR1wbyKgRbhTiF
railway-app
Bot
temporarily deployed
to
PauseAI Catalyse / catalyse-pr-187
July 25, 2026 15:06
Destroyed
Use the shared calculateMatchScore/matchGradeLabel from lib/matching.ts (already used for project-list match badges) instead of a raw percent, and gate the email on grade >= Good match so partial matches don't spam volunteers. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y7LqHwh4oR1wbyKgRbhTiF
railway-app
Bot
temporarily deployed
to
PauseAI Catalyse / catalyse-pr-187
July 25, 2026 15:20
Destroyed
|
🚅 Deployed to the catalyse-pr-187 environment in PauseAI Catalyse
1 service not affected by this PR
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
email_digest: 'match'("email me when a project matches my skills"), but no job ever read that value — the alert never fired.lib/project-match.ts:notifyMatchingVolunteers(), called the moment a project goes live: on org-projectcreate, and onreviewwhen an admin setsstatus: 'approved'.calculateMatchScore/matchGradeLabelfromlib/matching.tsthat powers the project-list match badges, and only emails a volunteer when the project is at least a Good match for them (i.e. ≥2 required skills matched) — partial matches don't trigger an email.Test plan
npm run typechecknpm run lintnpm run format:checknpm test— CI will run the e2e suite🤖 Generated with Claude Code
https://claude.ai/code/session_01Y7LqHwh4oR1wbyKgRbhTiF