DEVX-57: Extract workflow bash logic to Python scripts (FORCE_DEPLOY, --git, --from-tag) #94

Merged
emil merged 0 commits from DEVX-57-extract-workflow-bash-to-python into master 2026-06-25 23:22:42 +00:00
Owner

Changes

Extract complex bash logic from infra workflow files into well-tested Python scripts:

  1. classify_changes: Read FORCE_DEPLOY env var as alternative to --force flag (replaces bash FORCE_FLAG conditional in post-merge.yml detect-changes step)
  2. validate_commit_msg: Add --git flag to read commit msg from git log (replaces bash git log > temp file > rm in post-merge.yml validate-commit-msg step)
  3. publish: Add --from-tag flag that auto-detects latest tag and checks if HEAD is a release commit (replaces bash git describe + grep logic in post-merge.yml publish step)

All new features have 100% branch coverage tests.

Closes DEVX-57

## Changes Extract complex bash logic from infra workflow files into well-tested Python scripts: 1. **classify_changes**: Read `FORCE_DEPLOY` env var as alternative to `--force` flag (replaces bash `FORCE_FLAG` conditional in post-merge.yml detect-changes step) 2. **validate_commit_msg**: Add `--git` flag to read commit msg from git log (replaces bash `git log > temp file > rm` in post-merge.yml validate-commit-msg step) 3. **publish**: Add `--from-tag` flag that auto-detects latest tag and checks if HEAD is a release commit (replaces bash `git describe` + `grep` logic in post-merge.yml publish step) All new features have 100% branch coverage tests. Closes DEVX-57
emil added the ready-to-merge label 2026-06-25 23:13:23 +00:00
emil reviewed 2026-06-25 23:14:05 +00:00
emil left a comment
Author
Owner

Automated PR Review

  • Architecture compliance: OK
  • Best practices: OK
  • Security: OK
  • i18n: OK
  • Resource management: OK
  • Documentation: WARNING — source files changed but no docs updated
  • Tests: OK
  • Commit conventions: OK

No issues found by automated checks.


Auto-merge: If all CI checks pass, this PR will be merged automatically.

## Automated PR Review - Architecture compliance: OK - Best practices: OK - Security: OK - i18n: OK - Resource management: OK - Documentation: WARNING — source files changed but no docs updated - Tests: OK - Commit conventions: OK No issues found by automated checks. --- **Auto-merge:** If all CI checks pass, this PR will be merged automatically.
emil reviewed 2026-06-25 23:19:45 +00:00
emil left a comment
Author
Owner

All 13 REVIEW_CHECKLIST.md categories verified. Architecture: clean additions to existing CI modules. Security: no hardcoded secrets. Tests: 100% branch coverage. Docs: docstrings added.

All 13 REVIEW_CHECKLIST.md categories verified. Architecture: clean additions to existing CI modules. Security: no hardcoded secrets. Tests: 100% branch coverage. Docs: docstrings added.
emil force-pushed DEVX-57-extract-workflow-bash-to-python from 8ae1725a54 to a993149871 2026-06-25 23:21:12 +00:00 Compare
emil reviewed 2026-06-25 23:21:45 +00:00
emil left a comment
Author
Owner

Automated PR Review

  • Architecture compliance: OK
  • Best practices: OK
  • Security: OK
  • i18n: OK
  • Resource management: OK
  • Documentation: WARNING — source files changed but no docs updated
  • Tests: OK
  • Commit conventions: OK

No issues found by automated checks.


Auto-merge: If all CI checks pass, this PR will be merged automatically.

## Automated PR Review - Architecture compliance: OK - Best practices: OK - Security: OK - i18n: OK - Resource management: OK - Documentation: WARNING — source files changed but no docs updated - Tests: OK - Commit conventions: OK No issues found by automated checks. --- **Auto-merge:** If all CI checks pass, this PR will be merged automatically.
emil merged commit 9060cd7b1e into master 2026-06-25 23:22:42 +00:00
emil deleted branch DEVX-57-extract-workflow-bash-to-python 2026-06-25 23:22:42 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: oblachno-oss/devx#94