Skip to content
Proud to collaborate with Microsoft for Startups

github.releases.previous_compare ​

Resolve the previous release/tag and compare it with the current release/tag.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-github
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID
actorstringNo—Actor initiating the workflow
workflow_run_idstringNo—Parent workflow run id
dry_runbooleanNo—Validate and plan without provider reads
github_connection_uuiduuidNo—GitHub installation connection UUID
repositorystringYes—Repository owner/name
current_refstringYes—Current release tag, branch, or SHA
previous_refstringNo—Explicit previous release tag, branch, or SHA
include_filesbooleanNo—Include file-level changes in output when supported
max_commitsintegerNo—Optional cap for returned commit summaries

Output Schema ​

FieldTypeRequiredDefaultDescription
statusstringNo—planned, compared, no_previous_release, or failed
repositorystringNo——
current_refstringNo——
previous_refstringNo——
base_commit_shastringNo——
head_commit_shastringNo——
ahead_byintegerNo——
behind_byintegerNo——
total_commitsintegerNo——
commitslistNo——
fileslistNo——
compare_urlstringNo——
dry_runbooleanNo——
warningslistNo——
failure_reasonstringNo——
failed_stepstringNo——
failed_layerstringNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "github.releases.previous_compare",
  "initial_data": {
    "organization_uuid": "value",
    "repository": "value",
    "current_ref": "value"
  }
}