Skip to main content
Fetch a change and its path-level metadata. Required scope: read
const change = await mesa.changes.get({
  repo: 'app',
  change_id: 'zyxwvutsrqponmlkzyxwvutsrqponmlk',
});

console.log(change.files);
console.log(change.conflicts);

Options

repo
string
required
Repository name.
change_id
string
required
Change ID.
org
string | undefined
Organization override.

Response

id
string
Change ID.
current_commit_oid
string
Current commit OID for the change.
is_conflicted
boolean
Whether the current commit still contains unresolved conflicts.
message
string
Current change description. Empty string means the change has no description.
author
CommitIdentity
Commit author identity.
committer
CommitIdentity
Committer identity.
parents
string[]
Parent change IDs for this change.
created_at
string
Creation time.
updated_at
string
Last update time.
files
string[]
Repository-relative paths changed by this change.
conflicts
string[]
Repository-relative paths that still contain unresolved conflicts.

CommitIdentity

name
string
Author or committer display name.
email
string
Author or committer email address.
date
string | undefined
Timestamp for this identity when provided.