Skip to content

Changeset Versioning PR #118

@black7375

Description

@black7375

Packages with the problem

Configs (Vite, Lint, Typescript ..etc)

Describe the bug

The HEAD of changeset-release/main is specified as HEAD~1.

Expected behavior

Screenshots

Error Log:

image

Run changesets/action@v1
  with:
    commit: Chore: Version Packages
    publish: yarn run publish
    version: yarn run changeset:version
    setupGitUser: true
    createGithubReleases: true
  env:
    GITHUB_TOKEN: ***
    NPM_TOKEN: ***
setting git user
/usr/bin/git config user.name "github-actions[bot]"
/usr/bin/git config user.email "github-actions[bot]@users.noreply.github.com"
setting GitHub credentials
/usr/bin/git checkout changeset-release/main
Switched to a new branch 'changeset-release/main'
branch 'changeset-release/main' set up to track 'origin/changeset-release/main'.
/usr/bin/git reset --hard c10e461f4c3677ff0a2665887b035a36991cab34
HEAD is now at c10e461 Feat: Transform - Execute a function that returns className #114
/usr/local/bin/yarn run changeset:version
🦋  warn No unreleased changesets found, exiting.
/usr/bin/git status --porcelain
/usr/bin/git push origin HEAD:changeset-release/main --force
To https://github.com/mincho-js/mincho
 + 9d5f878...c10e461 HEAD -> changeset-release/main (forced update)
[]
creating pull request
Error: HttpError: Validation Failed: {"resource":"PullRequest","code":"custom","message":"No commits between main and changeset-release/main"}
Error: Validation Failed: {"resource":"PullRequest","code":"custom","message":"No commits between main and changeset-release/main"}

Expected Log:
image

Run changesets/action@v1
  with:
    commit: Chore: Version Packages
    publish: yarn run publish
    version: yarn run changeset:version
    setupGitUser: true
    createGithubReleases: true
  env:
    GITHUB_TOKEN: ***
    NPM_TOKEN: ***
setting git user
/usr/bin/git config user.name "github-actions[bot]"
/usr/bin/git config user.email "github-actions[bot]@users.noreply.github.com"
setting GitHub credentials
/usr/bin/git checkout changeset-release/main
error: pathspec 'changeset-release/main' did not match any file(s) known to git
/usr/bin/git checkout -b changeset-release/main
Switched to a new branch 'changeset-release/main'
/usr/bin/git reset --hard cd950d7b2d38e7a0c18fc3e3d5271ffff977831b
HEAD is now at cd950d7 Fix: Release version script name #69
/usr/local/bin/yarn run changeset:version
🦋  All files have been updated. Review them and commit at your leisure
/usr/bin/git status --porcelain
 D .changeset/two-llamas-develop.md
 M packages/css/CHANGELOG.md
 M packages/css/package.json
/usr/bin/git add .
/usr/bin/git commit -m Chore: Version Packages
[changeset-release/main 07b08e9] Chore: Version Packages
 3 files changed, 7 insertions(+), 6 deletions(-)
 delete mode 100644 .changeset/two-llamas-develop.md
/usr/bin/git push origin HEAD:changeset-release/main --force
remote: 
remote: Create a pull request for 'changeset-release/main' on GitHub by visiting:        
remote:      https://github.com/mincho-js/mincho/pull/new/changeset-release/main        
remote: 
To https://github.com/mincho-js/mincho
 * [new branch]      HEAD -> changeset-release/main
{
  "total_count": 0,
  "incomplete_results": false,
  "items": []
}
creating pull request

Steps To Reproduce

  1. When you merge versioning PR like Chore: Versioning for PMC S24 #116
  2. Should create Versioning PR by actions

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconfig/buildConfig or Build system

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions