Skip to content

"changeset status --since=main" does not cause CI Failure as per docs #2143

Closed

Activity

  1. beeequeue commented on Jul 2, 2026

    @beeequeue
    Member

    what is the checkout step's arguments?
    actions/checkout by default only fetches the latest commit with no git history unless you pass it fetch-depth: 0

  2. emmet-opinionx commented on Jul 6, 2026

    @emmet-opinionx
    ContributorAuthor

    fetch-depth: 0 was passed to the checkout. Below is the full action.
    As you can see from the output of the run changeset correctly identified that no changeset exists, but does not return a failure code.

    name: Changeset
    
    on:
      pull_request:
        branches:
          - main
    
    permissions:
      contents: read
    
    concurrency:
      group: ${{ github.workflow }}-${{ github.head_ref }}
      cancel-in-progress: true
    
    jobs:
      changeset:
        name: Changeset
        timeout-minutes: 10
        runs-on: ubuntu-latest
        steps:
          - name: Checkout Repo
            uses: actions/checkout@v3
            with:
              fetch-depth: 0
    
          - name: Setup
            uses: ./.github/actions/setup
    
          - name: Check Changeset
            run: pnpm changeset status --since=origin/${{ github.base_ref }}
    
  3. beeequeue commented on Jul 6, 2026

    @beeequeue
    Member

    apparently status only exits with 1 if no changesets are found and any packages are found to have been "changed" (#504)

    could that be the issue? is changesets detecting the changes if there are any?

  4. emmet-opinionx commented on Jul 7, 2026

    @emmet-opinionx
    ContributorAuthor

    Yes thats it. Thanks.
    Ill add a PR to get the above docs updated to avoid future confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-infoFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions