Skip to content

Add webhook email notifications and user email support - #6

Merged
ZhuYuxuan9302 merged 1 commit into
masterfrom
email
Jul 7, 2026
Merged

Add webhook email notifications and user email support#6
ZhuYuxuan9302 merged 1 commit into
masterfrom
email

Conversation

@ZhuYuxuan9302

Copy link
Copy Markdown
Member

Introduce email notification via webhook and sync user emails from OIDC. Add src/notify.js (webhook sender + notifyApproved/notifyRejected), call notifications in admin request approve/reject, and include email in admin user list. Persist users.email in DB (create column + migration in src/db.js) and sync/insert email in OIDC callback (src/auth.js). Expose email in frontend types and UserAdmin view. Update docs (README.md, CLAUDE.md) and CI workflows (use claude-sonnet-5). Notifications are optional (MAIL_WEBHOOK_URL/TOKEN) and failures are logged without blocking flows.

Introduce email notification via webhook and sync user emails from OIDC. Add src/notify.js (webhook sender + notifyApproved/notifyRejected), call notifications in admin request approve/reject, and include email in admin user list. Persist users.email in DB (create column + migration in src/db.js) and sync/insert email in OIDC callback (src/auth.js). Expose email in frontend types and UserAdmin view. Update docs (README.md, CLAUDE.md) and CI workflows (use claude-sonnet-5). Notifications are optional (MAIL_WEBHOOK_URL/TOKEN) and failures are logged without blocking flows.
@MCJPG-Agent

Copy link
Copy Markdown

🎉 感谢 @ZhuYuxuan9302 提交 Pull Request!
🎉 Thanks @ZhuYuxuan9302 for submitting the Pull Request!

我们会尽快审查您的代码。在此期间,请确保:
We will review your code as soon as possible. In the meantime, please ensure:

  • ✅ 所有测试通过 / All tests pass
  • ✅ 代码符合项目规范 / Code follows project conventions
  • ✅ 已添加必要的文档 / Necessary documentation is added

🤖 我们的 MCJPG Agent 将自动对您的代码进行初步审查。
🤖 Our MCJPG Agent will automatically conduct an initial review of your code.

如有代码辅助需求,请在评论区 @claude 进行请求。
If you need code assistance, please @claude in the comments.

@MineJPGcraft MineJPGcraft deleted a comment from MCJPG-Agent Jul 7, 2026
@ZhuYuxuan9302
ZhuYuxuan9302 merged commit a8db85f into master Jul 7, 2026
3 of 4 checks passed
@ZhuYuxuan9302
ZhuYuxuan9302 deleted the email branch July 7, 2026 06:13
@MCJPG-Agent

Copy link
Copy Markdown

❤️ 感谢来自 @ZhuYuxuan9302 的 PR ❤️
❤️ Great PR from @ZhuYuxuan9302 ❤️

如果您也对 MCJPG 组织的开发工作感兴趣,欢迎联系并加入我们!
If you're also interested in the development work of the MCJPG organization, feel free to reach out and join us!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants