Step Priority and Ordering
Step Priority and Ordering
Understand Custy's 28 priority entries and how they normalize a merged profile sequence.
STEP_ORDERCategory
Quick Command
lower priority number -> earlier merged-profile positionOverviewâ
STEP_ORDER is a global sort-key map used when Custy merges two or more
profiles. Lower values are placed earlier. The gaps between phases leave room
for future steps without renumbering the entire pipeline.
When Sorting Applies
Resolver Rules
Single Profile
Multiple Profiles
Repeated Step
Unknown Priority
Merged-Profile Algorithm
Normalization Order
Complete Priority Reference
STEP_ORDER
Lower values sort earlier when several profiles are combined.
| 0 â Initialization_custy_step | Initialization. Create or refresh project-owned Custy resources. |
|---|---|
| 10 â ensure_git_repo_step | Validation. Require execution inside a Git repository. |
| 11 â ensure_staged_changes_step | Validation. Check the staged-change requirement for commit work. |
| 12 â ensure_commit_validation_provider_step | Validation. Resolve built-in, Commitizen, or Git-policy message validation. |
| 13 â ensure_commit_hook_policy_step | Validation. Resolve native or safe direct pre-commit hook execution. |
| 14 â ensure_commit_message_file_step | Validation. Validate the configured commit-message file setting. |
| 15 â ensure_commit_message_file_exists_step | Validation. Require the commit-message file to exist. |
| 16 â ensure_version_file_step | Validation. Validate the configured version file. |
| 17 â ensure_tag_message_file_step | Validation. Validate the configured tag-message file setting. |
| 18 â ensure_tag_message_file_exists_step | Validation. Require the tag-message file to exist. |
| 19 â ensure_remote_exists_step | Validation. Require the resolved Git remote destinations. |
| 30 â prepare_version_step | Preparation. Resolve the version and tag context used by later stages. |
| 31 â workflow_init_step | Preparation. Initialize branch workflow state and services. |
| 32 â prepare_tag_message_step | Preparation. Prepare tag-message content for the resolved version. |
| 40 â generate_artifacts_step | Generation and editing. Generate configured release artifacts. |
| 41 â edit_files_step | Generation and editing. Open generated files for user review and editing. |
| 42 â validate_edited_step | Generation and editing. Validate files after the editing stage. |
| 43 â apply_version_step | Generation and editing. Apply the resolved version to configured project files. |
| 44 â generate_changelog_step | Generation and editing. Run conditional changelog generation. |
| 50 â backup_commit_message_files_step | Backup and cleanup. Back up commit-message content. |
| 51 â backup_tag_message_files_step | Backup and cleanup. Back up tag-message content. |
| 52 â cleanup_backup_step | Backup and cleanup. Apply configured backup retention cleanup. |
| 70 â stage_step | Git execution. Stage the files selected by the workflow. |
| 71 â commit_step | Git execution. Create the local Git commit. |
| 72 â tag_step | Git execution. Create the local Git tag. |
| 73 â push_step | Git execution. Push HEAD and an eligible tag to resolved remotes. |
| 80 â cleanup_branches_step | Branch cleanup. Run configured branch cleanup behavior. |
| 90 â finalize_step | Finalization. Invoke experimental post-release workflow transitions. |
Worked Example: push + commit
Both custy run push commit and custy run commit push currently normalize to
the same 19 steps. The CLI input order does not move push_step ahead of
validation, preparation, or commit_step.01 ensure_git_repo_step priority 10
02 ensure_staged_changes_step priority 11
03 ensure_commit_validation_provider_step priority 12
04 ensure_commit_hook_policy_step priority 13
05 ensure_commit_message_file_step priority 14
06 ensure_commit_message_file_exists_step priority 15
07 ensure_remote_exists_step priority 19
08 prepare_version_step priority 30
09 workflow_init_step priority 31
10 generate_artifacts_step priority 40
11 edit_files_step priority 41
12 validate_edited_step priority 42
13 apply_version_step priority 43
14 generate_changelog_step priority 44
15 backup_commit_message_files_step priority 50
16 cleanup_backup_step priority 52
17 stage_step priority 70
18 commit_step priority 71
19 push_step priority 73