Skip to content

refactor: split CLI into modular architecture#130

Open
Asaad27 wants to merge 1 commit into
zigcBenx:masterfrom
Asaad27:116-refactor-modular-architecture
Open

refactor: split CLI into modular architecture#130
Asaad27 wants to merge 1 commit into
zigcBenx:masterfrom
Asaad27:116-refactor-modular-architecture

Conversation

@Asaad27

@Asaad27 Asaad27 commented May 11, 2026

Copy link
Copy Markdown

Summary

  • Keep gitHappens.py as the executable compatibility wrapper while moving CLI routing into githappens/main.py.
  • Split config loading, GitLab API access, template handling, git utilities, interactive prompts, and command workflows into focused modules.
  • Add command modules for issue creation, review, deploy lookup, opening merge requests, and summaries.
  • Add focused unittest coverage for the extracted modules and update the README with the new structure.

Verification

  • python3 -m unittest discover -s tests -v
  • python3 -m compileall gitHappens.py githappens ai_code_review.py
  • ./gitHappens.py --help
  • git diff --cached --check

Closes #116

AI assistance was used to prepare this PR.

@Asaad27 Asaad27 marked this pull request as ready for review May 24, 2026 12:37
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.

Refactor monolithic gitHappens.py into modular architecture

1 participant