Skip to main content
Move an existing bookmark to a new change ID. Required scope: write
const bookmark = await mesa.bookmarks.move({
  repo: 'app',
  bookmark: 'main',
  change_id: 'zyxwvutsrqponmlkzyxwvutsrqponmlk',
});

console.log(bookmark.from_change_id, bookmark.change_id);

Options

repo
string
required
Repository name.
bookmark
string
required
Bookmark to move.
change_id
string
required
Target change ID.
org
string | undefined
Organization override.

Response

name
string
Bookmark name.
change_id
string
Change ID the bookmark points to.
is_default
boolean
Whether this is the repository default bookmark.
from_change_id
string | null
Previous change ID before the move, or null when unavailable.