-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add lefthook for git hooks and sync contributing docs #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,3 @@ | ||
| --- | ||
| blank_issues_enabled: false | ||
| contact_links: | ||
| - name: GitHub Discussions | ||
| url: https://github.com/TomerFi/version-bumper-action/discussions/ | ||
| about: You can also use Discussions for questions and ideas. | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # https://github.com/apps/auto-me-bot | ||
| --- | ||
| pr: | ||
| conventionalTitle: | ||
| tasksList: |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| assert_lefthook_installed: true | ||
|
|
||
| pre-commit: | ||
| parallel: true | ||
| commands: | ||
| no-commit-to-master: | ||
| run: '[ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]' | ||
| actionlint: | ||
| glob: ".github/workflows/*.{yml,yaml}" | ||
| run: actionlint {staged_files} | ||
| editorconfig-checker: | ||
| run: editorconfig-checker {staged_files} | ||
| aicfg-link: | ||
| glob: | ||
| - CLAUDE.md | ||
| - AGENTS.md | ||
| - .claude/** | ||
| - .agents/** | ||
| run: uvx aicfg link agents --to claude-code --ci | ||
|
|
||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,31 @@ | |
|
|
||
| A GitHub Actions **composite action** wrapping [@tomerfi/version-bumper](https://github.com/TomerFi/version-bumper) for semantic version bumping based on conventional commits. | ||
|
|
||
| ## Tech Stack | ||
| ## AI Policy | ||
|
|
||
| This project has an [AI policy](AI_POLICY.md). Always read it and ensure all suggestions, code, and contributions comply. If any behavior seems to conflict with the policy, warn the user and ask for guidance. | ||
|
|
||
| ## Architecture | ||
|
|
||
| - `action.yml` — composite action entrypoint with inline bash scripts | ||
| - `.github/workflows/` — CI workflows (CI, test, release, new version bumper) | ||
| - `.github/workflows/test_action.yml` — reusable workflow for testing the action | ||
|
|
||
| ## Working Environment | ||
|
|
||
| - This is a **GitHub Actions composite action** project. | ||
| - This project uses [**lefthook**](https://github.com/evilmartians/lefthook) for Git hooks. Install the hook with `lefthook install`. | ||
| - The pre-commit hook blocks commits to `master` and validates workflows with actionlint, editorconfig-checker, and aicfg. | ||
|
|
||
| ## Linting | ||
|
|
||
| ```bash | ||
| actionlint | ||
| editorconfig-checker | ||
| aicfg link agents --to claude-code --ci | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Align all documented
📍 Affects 2 files
🤖 Prompt for AI Agents
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
| ``` | ||
|
|
||
| ## Bash Scripting | ||
|
|
||
| - **Runtime:** Bash inline scripts in `action.yml` | ||
| - **Package:** `@tomerfi/version-bumper` (pinned via `VB_VERSION` env var) | ||
|
|
@@ -33,5 +57,3 @@ Testing conventions for the action's CI workflows. | |
| - Test all functionality in `test_action.yml` workflow | ||
| - Test automatic and manual sources | ||
| - Test all bump types (major/minor/patch/auto) | ||
|
|
||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| AGENTS.md |
Uh oh!
There was an error while loading. Please reload this page.