feat(service): add Gmail service#1017
Open
tmchow wants to merge 2 commits into
Open
Conversation
…bility The go.mod was bumped to go 1.25.0 with google.golang.org/api v0.274.0 during local development (Go 1.26.1), but the CI linter (golangci-lint v2.7.2, built with Go 1.25) panics when encountering source files requiring go1.26 in the transitive dependency tree. Reverting to go 1.24.0 with API v0.265.0 (matching upstream) resolves the linter panic while keeping the Gmail service fully functional.
Author
|
The lint failure here isn't from this PR. All 5 open PRs (#1014-#1018) are hitting the same panic: Fix is either bumping golangci-lint to v2.11+ (built with go1.26) or pinning go-version: "1.25.x" in ci.yml, but out of scope for 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.
Adds a Gmail notification service using the Google Gmail API (
google.golang.org/api/gmail/v1).Sends emails via the Gmail API with OAuth2 authentication. Each recipient gets a separate email with the subject and message body.
Follows the same pattern as existing services: client setup via
New(),AddReceivers()for email addresses, andSend()for dispatching messages.Files added:
service/gmail/gmail.goservice/gmail/doc.goservice/gmail/usage.mdCloses #417
This contribution was developed with AI assistance (Codex).