Skip to main content

Documentation Index

Fetch the complete documentation index at: https://code.storage/docs/llms.txt

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

const tag = await repo.createTag({
  name: "v1.0.0",
  target: "abc123def456...", // commit SHA to tag
});

console.log(tag.name); // 'v1.0.0'
console.log(tag.sha);  // resolved SHA
Tag names must not start with refs/ — the SDK handles ref resolution automatically.

Options

name
string
required
Tag name (e.g. v1.0.0). Must not start with refs/.
target
string
required
Commit SHA the tag should point to.

Response

name
string
The created tag name
sha
string
The resolved commit SHA the tag points to
message
string
Confirmation message from the API