ateam_github_diff
PRE-FLIGHT BEFORE PROMOTE. Compares dev (head) vs main (base) by default — shows exactly which commits and files are about to ship if you call ateam_github_promote() next.
Use this when you want to:
• Review changes before promoting to prod
• See if dev is ahead of main at all (returns ahead_by: 0 if nothing to promote)
• Diagnose a failed promote — check behind_by and status. status: 'diverged' (behind_by > 0) means main holds commits dev never received, which is what makes ateam_github_promote return 409 Merge conflict. ALWAYS call this after a promote failure, before reporting anything to the user.
• Inspect arbitrary branch/tag/commit comparisons (override base/head)
Note: files[] lists what DIFFERS, not what conflicts. For solution.json and skills/*/skill.json the difference is often deploy-generated data (regenerated connector tools, timestamps) rather than authored change — see ateam_github_read's _ateam_representation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base branch/tag/sha (the target — what you're comparing TO). Default: 'main'. | main |
| head | No | Head branch/tag/sha (the source — what you're comparing FROM). Default: 'dev'. | dev |
| solution_id | Yes | The solution ID |