Skip to content

Refactor gitHappens CLI into modular architecture#145

Open
partyplatter08-lab wants to merge 1 commit into
zigcBenx:masterfrom
partyplatter08-lab:partyplatter08-lab/bounty-116
Open

Refactor gitHappens CLI into modular architecture#145
partyplatter08-lab wants to merge 1 commit into
zigcBenx:masterfrom
partyplatter08-lab:partyplatter08-lab/bounty-116

Conversation

@partyplatter08-lab
Copy link
Copy Markdown

Summary

  • Split the monolithic gitHappens.py implementation into focused modules for config loading, template handling, GitLab API calls, git helpers, interactive prompts, and command workflows.
  • Kept gitHappens.py as the backwards-compatible executable wrapper while moving argument parsing into main.py.
  • Added unit tests for the extracted modules and command workflows, with GitLab/network/prompt behavior mocked locally.
  • Updated the README with the new project structure.

Validation

  • python3 -m unittest discover -v
  • python3 -m compileall -q .
  • git diff --check
  • PYTHONDONTWRITEBYTECODE=1 python3 gitHappens.py prints CLI help and exits 1 when no arguments are provided, matching the existing no-argument behavior.

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