OpenCut-app / OpenCut-app/OpenCut

[BUG] Moon CI resolves nonexistent master branch

Open Beginner friendly
#837 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
89.8k
Forks
8.9k
PR merge metrics
No merged PRs in 30d

Description

Platform

GitHub Actions (ubuntu-latest, windows-latest, macos-latest) and Windows 11 locally with Moon 2.3.3.

Current Behavior

Every Bun CI run on main fails before a project task starts. The latest run, https://github.com/OpenCut-app/OpenCut/actions/runs/29121395671, fails in moon ci with:

fatal: ambiguous argument 'master': unknown revision or path not in the working tree.

.moon/workspace.yml does not define vcs.defaultBranch, so Moon 2.3.3 falls back to master, but this repository's default branch is main.

Expected Behavior

moon ci should compare against main and proceed to the affected task graph.

Steps To Reproduce
  1. Clone the repository at bab8af831b354a0b5a98a4a6e818ab7d633b94df.
  2. Run bunx --bun @moonrepo/cli@2.3.3 ci from the repository root.
  3. Observe the failure resolving master.
Proposed Fix

Add the following to .moon/workspace.yml:

vcs:
  defaultBranch: 'main'

This is limited to Moon's affected-change base resolution. It does not alter application runtime behavior, GitHub's default branch, or task definitions.

I reproduced the current failure locally. With the explicit main base, Moon resolves the task graph without the master error. The current contribution policy asks for maintainer approval before a bug-fix PR, so requesting approval for this one-line CI correction.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with .moon/workspace.yml and reproduce the failure with bunx --bun @moonrepo/cli@2.3.3 ci from the repository root. Set Moon's VCS default branch to main, then rerun the command and confirm it resolves the affected task graph without the nonexistent master-branch error.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
92/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.