feat: Mirror status updates onto discord#99
Merged
hrideshmg merged 2 commits intoamfoss:developfrom Mar 6, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new scheduled task that mirrors daily status-update emails into the appropriate Discord channels based on member track/group, wiring in the needed GraphQL fields and channel IDs.
Changes:
- Introduces
MirrorNewUpdatestask to fetch status-update emails via IMAP and post them to Discord channels. - Extends GraphQL member fetching/model to include
email(andgroupIdin the model) to route updates correctly. - Adds per-track and per-group status-update channel IDs plus new mail/IMAP dependencies and env sample entries.
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/tasks/status_update_mirror.rs | New scheduled task that reads status-update emails and posts them to Discord with track/group routing. |
| src/tasks/mod.rs | Registers the new mirror task for scheduling. |
| src/tasks/status_update.rs | Removes an unused import. |
| src/graphql/queries.rs | Adds email to the member query payload. |
| src/graphql/models.rs | Adds email and group_id fields to Member for routing logic. |
| src/ids.rs | Adds channel ID constants for track/group-specific status update channels. |
| Cargo.toml | Adds IMAP/mail parsing dependencies. |
| Cargo.lock | Lockfile updates for added dependencies. |
| .env.sample | Adds EMAIL_ID and APP_PASSWORD sample variables. |
| src/config.rs | Minor formatting change for AMD_API_KEY env lookup. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
hrideshmg
requested changes
Mar 6, 2026
Khushal928
commented
Mar 6, 2026
hrideshmg
previously approved these changes
Mar 6, 2026
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.
This PR adds a new task that sends all the updates that were sent last day to discord channels