Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mesa.dev/llms.txt

Use this file to discover all available pages before exploring further.

Get structured diff data between two changes.
const diff = await mesa.diffs.get({
  repo: 'app',
  base_change_id: 'zyxwvutsrqponmlkzyxwvutsrqponmlk',
  head_change_id: 'yxwvutsrqponmlkzyxwvutsrqponmlkz',
  conflicts: 'include',
});

console.log(diff.stats.additions, diff.stats.deletions);
Get only conflict details:
const conflicts = await mesa.diffs.get({
  repo: 'app',
  base_change_id: 'zyxwvutsrqponmlkzyxwvutsrqponmlk',
  head_change_id: 'yxwvutsrqponmlkzyxwvutsrqponmlkz',
  conflicts: 'only',
});

Options

repo
string
required
Repository name.
base_change_id
string
required
Base change ID.
head_change_id
string
required
Head change ID.
org
string | undefined
Organization override.
conflicts
'include' | 'only' | 'exclude' | undefined
Conflict detail mode. Defaults to include.

Response

base_change_id
string
Base change used for comparison.
head_change_id
string
Head change used for comparison.
stats
object
Aggregate entries, additions, deletions, changes, conflicted_entries, and conflicted_hunks.
truncated
boolean
Whether the response hit the server entry limit and is incomplete.
entries
array
Changed entries with status, hunks when available, and optional conflict hunks.
conflicted_entries
array
Conflict-only details for unresolved paths.

Required scope

read