Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help understanding the log and setup correctly #64

Open
labsforge opened this issue Apr 10, 2024 · 1 comment
Open

Help understanding the log and setup correctly #64

labsforge opened this issue Apr 10, 2024 · 1 comment

Comments

@labsforge
Copy link

Hi, I'm trying to implement this plugin into our ci but I'm having dificulties. this is the config for semantic:

"branches": [
    "master",
    {
      "name": "beta",
      "channel": "beta",
      "prerelease": true
    },
    {
      "name": "development",
      "channel": "alpha",
      "prerelease": "alpha"
    }
  ]

I have alpha/beta/stable releases, alpha=development, beta=beta, stable=master and I need to backmerge from beta>development and from master>beta>development in order for semantic-release fetch the last tag from each release branch.

this is the plugin:

["@saithodev/semantic-release-backmerge", {
      "backmergeBranches": ["development", {"from": "master", "to": "beta"}],
      "backmergeStrategy": "merge",
      "message": "chore(release): backmerge ${nextRelease.version} to ${branch.name} [skip ci]",
      "clearWorkspace": true
    }]

the result is not what I expected, because tries to merge development into master 😨 log:

[3:24:43 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  Fetching all remotes.
[3:24:43 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  Fetching latest commits from repository at "[https://gitlab-ci-token:[secure]@gitlab.com/app.git](https://gitlab-ci-token:%5Bsecure%[email protected]/app.git)".
[3:24:44 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  Stashing uncommitted files from Git workspace.
[3:24:44 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  Performing back-merge into develop branch "master".
[3:24:44 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  Branch is detached. Checking out release branch "beta".
[3:24:44 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  Checking out develop branch "master".
[3:24:44 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  Performing backmerge with "merge" strategy.
[3:24:44 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  Loading plugins
[3:24:44 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  Executing "done" step of plugins
[3:24:44 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  Found 0 staged files for back-merge commit
[3:24:44 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  Pushing backmerge to develop branch master
{ name: 'beta', channel: 'beta', prerelease: true }
[3:24:47 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  [object Object]
[3:24:47 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ✖  Invalid branch configuration found and ignored.
{ name: 'development', channel: 'alpha', prerelease: 'alpha' }
[3:24:47 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ℹ  [object Object]
[3:24:47 PM] [semantic-release] [@saithodev/semantic-release-backmerge] › ✖  Invalid branch configuration found and ignored.
[3:24:47 PM] [semantic-release] › ✔  Completed step "success" of plugin "@saithodev/semantic-release-backmerge"
[3:24:47 PM] [semantic-release] › ✔  Published release 1.0.6-beta.1 on beta channel

Performing back-merge into develop branch "master".
Pushing backmerge to develop branch master { name: 'beta', channel: 'beta', prerelease: true }
Invalid branch configuration found and ignored. { name: 'development', channel: 'alpha', prerelease: 'alpha' }

What am I doing wrong?

Thank you

@labsforge
Copy link
Author

Nobody here? 😨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant