Skip to content

Add pre-push git hook for symbol checks and code review#4933

Draft
tarek-y-ismail wants to merge 5 commits into
mainfrom
pre-push-hooks
Draft

Add pre-push git hook for symbol checks and code review#4933
tarek-y-ismail wants to merge 5 commits into
mainfrom
pre-push-hooks

Conversation

@tarek-y-ismail
Copy link
Copy Markdown
Contributor

What's new?

  • Introduce .githooks/pre-push to enforce ABI symbol checks before push
  • Optionally run Claude-based code review if copilot CLI is available
  • Document git hooks setup and usage in HACKING.md
  • Provide instructions for skipping or running hooks manually

How to test

  • Check HACKING.md for instructions.

Checklist

  • Adequate documentation added

- Introduce .githooks/pre-push to enforce ABI symbol checks before push
- Optionally run Claude-based code review if copilot CLI is available
- Document git hooks setup and usage in HACKING.md
- Provide instructions for skipping or running hooks manually
@tarek-y-ismail tarek-y-ismail self-assigned this May 7, 2026
Comment thread HACKING.md Outdated
Comment thread HACKING.md
Comment thread HACKING.md Outdated
tarek-y-ismail and others added 3 commits May 7, 2026 14:36
Co-authored-by: Michał Sawicz <michal.sawicz@canonical.com>
Co-authored-by: Michał Sawicz <michal.sawicz@canonical.com>
Both environment variables now follow the same naming convention:
- MIR_SKIP_SYMBOL_CHECK=true    Skip symbol checks
- MIR_SKIP_CODE_REVIEW=true     Skip code review

This makes the hook options more consistent and intuitive - both use
negative logic (skip) rather than mixing positive and negative patterns.

Default behavior is preserved: code review still runs unless explicitly
disabled with MIR_SKIP_CODE_REVIEW=true.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants