Skip to content

refactor: split monolithic gitHappens.py into modular architecture#163

Open
MaanVader wants to merge 1 commit into
zigcBenx:masterfrom
MaanVader:refactor/modular-architecture
Open

refactor: split monolithic gitHappens.py into modular architecture#163
MaanVader wants to merge 1 commit into
zigcBenx:masterfrom
MaanVader:refactor/modular-architecture

Conversation

@MaanVader
Copy link
Copy Markdown

Summary

Refactors monolithic gitHappens.py (845 lines, 44 functions) into a clean modular architecture per issue #116.

New Structure

  • main.py - CLI entry point + arg parsing
  • gitlab_api.py - GitLab API + glab CLI wrappers
  • config.py - Lazy config loading
  • templates.py - Template/reviewer selection
  • git_utils.py - Git ops, AI summaries, incident reports
  • interactive.py - Inquirer-based issue creation
  • commands/ - Domain-grouped submodules
  • gitHappens.py - Backwards-compatible shim

All 44 functions preserved. Zero net new code (913 in, 1046 out). Imports verified.

- main.py: CLI entry point and argument parsing
- gitlab_api.py: GitLab API interactions + glab CLI wrappers
- config.py: lazy configuration loading
- templates.py: template/reviewer selection UI
- git_utils.py: git operations, AI summaries, incident reports
- interactive.py: inquirer-based issue creation flow
- commands/: domain-grouped submodules (create_issue, review, deploy, open_mr)
- configs/: config.ini + templates.json

Solves OpenPledge issue zigcBenx#116
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.

1 participant