Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new semantic-release plugin @jno21/semantic-release-github-commit that commits release assets to GitHub using the REST API. The plugin enables verified commits when using GitHub App tokens, addressing a gap where traditional git-based approaches cannot achieve verified commits on protected branches.
Key changes include:
- Complete plugin implementation with
verifyConditionsandpreparelifecycle hooks - GitHub REST API integration for commit creation with automatic signing support
- Comprehensive test coverage for all core functionality
- Documentation including setup guide and usage examples
Reviewed Changes
Copilot reviewed 23 out of 27 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/index.ts | Entry point exporting semantic-release lifecycle hooks |
| src/verify.ts | Verification logic for plugin configuration and credentials |
| src/prepare.ts | Main logic for creating and pushing commits via GitHub API |
| src/utils.ts | Utility functions for authentication, repo parsing, and git identity |
| src/github.ts | GitHub REST API client wrapper |
| src/files.ts | File resolution and blob preparation utilities |
| src/types.ts | TypeScript type definitions for plugin interfaces |
| src/errors.ts | Custom error classes and error code definitions |
| test/*.test.ts | Comprehensive test suites for all modules |
| test/mocks/* | Jest mocks for external dependencies |
| package.json | Package metadata and dependencies |
| README.md | Plugin documentation and usage guide |
| docs/setup-guide.md | Detailed setup instructions with GitHub App configuration |
| release.config.js | Example semantic-release configuration |
| .github/workflows/* | CI/CD workflows for testing and releasing |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Contributor
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
No description provided.