YAML for Jev
Ask Jev, the TypeSafe model, a question about the run and export the answer as pipeline variables.
YAML examples for Jev
Score the risk of a change with Jev
yaml- action: "Assess deployment risk" type: "JEV" trigger_time: "ON_EVERY_EXECUTION" integration: "our-typesafe" state: - "Commit: $BUDDY_RUN_COMMIT_MESSAGE" - file: "CHANGELOG.md" question: "How risky is this change to deploy?" question_type: "SCORE" model: "jev-1.13.0" criteria: none: "Touches only documentation or comments" low: "Touches application code covered by tests" high: "Touches database migrations or public API contracts"
Classify a change with Jev
yaml- action: "Classify the change" type: "JEV" trigger_time: "ON_EVERY_EXECUTION" integration: "our-typesafe" state: - "Commit: $BUDDY_RUN_COMMIT_MESSAGE" question: "What kind of change is this?" question_type: "CHOICE" criteria: feature: "Adds behaviour visible to the user" bugfix: "Restores behaviour that was already promised" other: "Anything that does not fit the options above"
Ask Jev a yes or no question with explicit true and false conditions
yaml- action: "Check schema impact" type: "JEV" trigger_time: "ON_EVERY_EXECUTION" integration: "our-typesafe" state: - "Commit: $BUDDY_RUN_COMMIT_MESSAGE" - file: "CHANGELOG.md" question: "Does this change touch database migrations?" question_type: "BOOLEAN" true_when: "The changelog mentions a Liquibase changeset or any SQL schema file" false_when: "The changelog leaves the schema untouched"
Ask Jev a yes or no question
yaml- action: "Check the release notes" type: "JEV" trigger_time: "ON_EVERY_EXECUTION" integration: "our-typesafe" state: - "Commit: $BUDDY_RUN_COMMIT_MESSAGE" question: "Do the release notes describe every change in this run?" question_type: "BOOLEAN"