@@ -21,7 +21,7 @@ $(error Python version validation failed. See error message above.)
2121endif
2222
2323# Define all PHONY targets
24- .PHONY : act all audit bump clean codegen dist dist_native docs docker_build gui_watch install lint lint_fix merge-release pre_commit_run_all prepare-release profile publish-release setup test test_coverage_reset test_default test_e2e test_e2e_matrix test_integration test_integration_matrix test_long_running test_scheduled test_stress test_sequential test_unit test_unit_matrix test_very_long_running update_from_template
24+ .PHONY : act all audit clean codegen dist dist_native docs docker_build gui_watch install lint lint_fix merge-release pre_commit_run_all prepare-release profile publish-release setup test test_coverage_reset test_default test_e2e test_e2e_matrix test_integration test_integration_matrix test_long_running test_scheduled test_stress test_sequential test_unit test_unit_matrix test_very_long_running update_from_template
2525
2626
2727# Main target i.e. default sessions defined in noxfile.py
4747fi
4848
4949# # Individual Nox sessions
50- act audit bump dist docs lint lint_fix setup test update_from_template :
50+ act audit dist docs lint lint_fix setup test update_from_template :
5151 $(nox-cmd )
5252
5353# Standalone targets
@@ -125,6 +125,17 @@ publish-release:
125125 fi
126126 @echo " Workflow triggered. Monitor at: https://github.com/aignostics/python-sdk/actions"
127127
128+ # # Trigger the merge-release GitHub workflow to merge release/vX.Y.Z into main and delete the branch
129+ # # Usage: make merge-release [release/vX.Y.Z]
130+ merge-release :
131+ $(eval BRANCH := $(filter-out $@ ,$(MAKECMDGOALS ) ) )
132+ @if [ -n " $( BRANCH) " ]; then \
133+ gh workflow run merge-release.yml --field branch=$(BRANCH ) ; \
134+ else \
135+ gh workflow run merge-release.yml; \
136+ fi
137+ @echo " Workflow triggered. Monitor at: https://github.com/aignostics/python-sdk/actions"
138+
128139# # Clean build artifacts and caches
129140clean :
130141 rm -rf .mypy_cache
@@ -214,9 +225,9 @@ help:
214225 @echo " act - Run GitHub actions locally via act"
215226 @echo " all - Run all default nox sessions, i.e. lint, test, docs, audit"
216227 @echo " audit - Run security and license compliance audit"
217- @echo " bump patch|minor|major|x.y.z - Bump version (local, legacy)"
218228 @echo " prepare-release patch|minor|major|x.y.z - Create release/vX.Y.Z branch via GitHub workflow"
219229 @echo " publish-release [release/vX.Y.Z] - Generate changelog, tag, and push via GitHub workflow"
230+ @echo " merge-release [release/vX.Y.Z] - Merge release branch into main and delete it via GitHub workflow"
220231 @echo " clean - Clean build artifacts and caches"
221232 @echo " codegen - Download openapi.json from Aignostics platform, generate API code"
222233 @echo " dist - Build wheel and sdist into dist/"
0 commit comments