OpenCut-app / OpenCut-app/OpenCut
[BUG] Moon CI resolves nonexistent master branch
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
- Clone the repository at
bab8af831b354a0b5a98a4a6e818ab7d633b94df. - Run
bunx --bun @moonrepo/cli@2.3.3 cifrom the repository root. - 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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