From c60b567230e7d443f27f9922152794abc281f13c Mon Sep 17 00:00:00 2001 From: Alec Gibson <12036746+alecgibson@users.noreply.github.com> Date: Mon, 7 Sep 2026 12:18:50 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=80=EF=B8=8F=20Point?= =?UTF-8?q?=20CI=20and=20README=20badges=20at=20`main`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The repository's default branch has been renamed from `master` to `main`. GitHub moves the branch, the default-branch setting and any open pull requests for us, but it leaves the contents of the repository alone, so anything in-tree naming the old branch now points at a ref that doesn't exist. Two things break. The `Test` workflow filters both its `push` and `pull_request` triggers on `master`, so CI would silently stop running altogether — no failures, just no runs. The Coveralls badge pins `?branch=master`, so it would render "unknown" indefinitely. This change points both at `main`. The Coveralls badge will still read "unknown" until the first build lands on `main`, since Coveralls files coverage per branch name and all our history sits under `master`. While in the badge block, the dead Travis badge is replaced with a GitHub Actions one for the `Test` workflow, since Travis hasn't run this repository since it moved to Actions. That badge deliberately omits a `?branch=` parameter: GitHub's workflow badges default to the repository's default branch, so it survives any future rename for free. The NPM badge also linked to `sharedb-mingo-mongo`, which isn't a published package; it now links to `sharedb-mingo-memory`. Finally, `coverallsapp/github-action` is pinned to `v2.3.8`. It was tracking that action's `master` branch, and upstream has been through this same rename: their default is `main` now, and the abandoned `master` branch has sat at April 2023 ever since. So we were tracking a three-year-old action by accident, and invisibly — Dependabot's `github-actions` updates bump tags and SHAs, not branch refs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/test.yml | 8 ++++---- README.md | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 380504f..b1f0215 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,10 +3,10 @@ name: Test on: push: branches: - - master + - main pull_request: branches: - - master + - main jobs: test: @@ -31,7 +31,7 @@ jobs: - name: Test run: npm run test-cover - name: Coveralls - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@v2.3.8 with: github-token: ${{ secrets.GITHUB_TOKEN }} flag-name: node-${{ matrix.node }} @@ -42,7 +42,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Submit coverage - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@v2.3.8 with: github-token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true diff --git a/README.md b/README.md index 2989900..ceef3d5 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # ShareDBMingo - [![NPM Version](https://img.shields.io/npm/v/sharedb-mingo-memory.svg)](https://npmjs.org/package/sharedb-mingo-mongo) - [![Build Status](https://travis-ci.org/share/sharedb-mingo-memory.svg?branch=master)](https://travis-ci.org/share/sharedb-mingo-memory) - [![Coverage Status](https://coveralls.io/repos/github/share/sharedb-mingo-memory/badge.svg?branch=master)](https://coveralls.io/github/share/sharedb-mingo-memory?branch=master) + [![NPM Version](https://img.shields.io/npm/v/sharedb-mingo-memory.svg)](https://npmjs.org/package/sharedb-mingo-memory) + [![Test](https://github.com/share/sharedb-mingo-memory/actions/workflows/test.yml/badge.svg)](https://github.com/share/sharedb-mingo-memory/actions/workflows/test.yml) + [![Coverage Status](https://coveralls.io/repos/github/share/sharedb-mingo-memory/badge.svg?branch=main)](https://coveralls.io/github/share/sharedb-mingo-memory?branch=main) A database adapter for [sharedb](https://github.com/share/sharedb) that implements a subset of Mongo operations using an in-memory