Conversation
Install Node.js, npm, act, and local-action for development environment setup
- Implemented a modular GitHub Action for committing changes via the GitHub API, allowing for automatically signed commits that bypass repository rulesets. - Added TypeScript configuration and ESLint setup for code quality. - Included Jest for unit testing with comprehensive test coverage. - Updated .gitignore and .npmignore to manage ignored files effectively. - Created README documentation for usage instructions and API details. - Enhanced pre-commit hooks for linting and formatting.
- Added new extensions to enhance development experience: GitHub Actions, ESLint, and Prettier. - Configured TypeScript settings for improved code quality and auto-import suggestions. - Updated search exclusions to prevent indexing of unnecessary files and directories.
14 tasks
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.
Description
This PR introduces the initial implementation of Commit Action - a modular GitHub Action that creates signed commits via the GitHub API, allowing commits to bypass repository rulesets and branch protection rules.
The action provides a TypeScript-based solution for programmatically committing changes through GitHub's API rather than traditional git push, which enables automatic commit signing by GitHub and circumvents restrictions that would otherwise block direct pushes.
Related Issue(s)
None
Type of Change
Changes Made
Core Implementation (
src/commit.ts):commitViaAPI()main function with modular architecturecreateBlob(),createTree(),createCommit(),updateBranch(),getBranchInfo()CommitOptionsandCommitResultCLI Runner (
src/commit-runner.ts):npm run commitGitHub Action (
action.yml):Testing & Infrastructure:
src/__tests__/unit/commit.test.ts)tsconfig.json,tsconfig.test.json)Testing
npm test)npm run build)npm run bundle)npm run lint)Manual Testing Details
Unit Tests:
src/__tests__/unit/commit.test.tspasscommitViaAPI,createBlob,createTree,createCommit,updateBranch,getBranchInfoManual CLI Testing:
npm run commitAction Bundle Testing:
npm run bundleChecklist
[Unreleased]sectionAdditional Notes
Project Structure:
Key Features:
Use Cases: