feat(provider): implement GitHub REST API provider plugin#11
Merged
Conversation
Replaces the skeleton stub with a fully functional ProviderPluginServer backed by github.com/google/go-github/v69. Changes: - internal/plugin/provider_impl.go: Provider struct with all 4 RPCs: GetLastRelease, GetCommitsSince, CreateRelease (with dry-run support), UploadAsset - internal/plugin/provider_impl_test.go: tests using httptest.Server mock for GetLastRelease (no release + with release), dry-run CreateRelease, and parseVersion helper - cmd/plugin/main.go: go-plugin gRPC serve entrypoint - internal/grpc/server.go: replaced old stub with empty package comment - go.mod: add semrel-api v0.1.1, go-github/v69, go-plugin Closes #7 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fixes golangci-lint version mismatch (built with go1.24, target go1.25). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
golangci-lint v1.64.8 (built with go1.24) fails on go1.25 projects. v2.1.6 supports go1.25+. Also remove run.go override from golangci.yml which caused cascading typecheck errors in go-plugin dependencies. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Implements the \ProviderPlugin\ gRPC service using the GitHub REST API.
RPCs Implemented
Changes
Test Results
\
ok github.com/SemRels/provider-github/internal/plugin 2.5s
\\
Closes #7