OtterMind/Chat2DB · error · Error

GITHUB_REPOSITORY must be owner/repository.

Error message

GITHUB_REPOSITORY must be owner/repository.

What it means

Error "GITHUB_REPOSITORY must be owner/repository." thrown in OtterMind/Chat2DB.

Source

Thrown at script/github/sync-community-project.js:43

}

function fallbackIssueStatus(issue) {
  if (String(issue.state).toLowerCase() === 'closed') return 'Done';
  const labels = new Set((issue.labels || []).map((label) => label.name || label));
  return [...ELIGIBLE_LABELS].some((label) => labels.has(label)) ? 'Ready' : 'Backlog';
}

function issueEventStatus(action, issue) {
  if (action === 'closed') return 'Done';
  if (action === 'reopened') return fallbackIssueStatus(issue);
  return 'Inbox';
}

class GitHubClient {
  constructor({ token, repository, apiUrl = 'https://api.github.com' }) {
    if (!token) throw new Error('GH_PROJECT_TOKEN is required.');
    const [owner, repo] = String(repository || '').split('/');
    if (!owner || !repo) throw new Error('GITHUB_REPOSITORY must be owner/repository.');
    this.token = token;
    this.owner = owner;
    this.repo = repo;
    this.apiUrl = apiUrl.replace(/\/$/, '');
  }

  async request(endpoint, { method = 'GET', body } = {}) {
    const response = await fetch(`${this.apiUrl}${endpoint}`, {
      method,
      headers: {
        Accept: 'application/vnd.github+json',
        Authorization: `Bearer ${this.token}`,
        'Content-Type': 'application/json',
        'X-GitHub-Api-Version': '2022-11-28',
      },
      body: body === undefined ? undefined : JSON.stringify(body),
    });
    const payload = response.status === 204 ? null : await response.json();

View on GitHub (pinned to 5ee1e990e7)

Solutions

  1. Set GITHUB_REPOSITORY in the form owner/repository, e.g. chat2db/Chat2DB.
  2. In GitHub Actions the variable is set automatically; when running locally, export it explicitly.

When it happens

Trigger: GITHUB_REPOSITORY was missing or did not contain exactly one slash separating owner and repository name.

Common situations: See trigger scenarios.


AI-assisted analysis of OtterMind/Chat2DB@5ee1e990e7 (2026-08-14). Data as JSON: /api/errors/a9a5dd8ef9e9afc3. Report an issue: GitHub.