mooltiverse / nyx

The one stop semantic release tool
Apache License 2.0
113 stars 8 forks source link

On Gitlab CI/CD in the main branch, nyx preset='extended' resolves to releaseType=internal instead of mainline #190

Closed javaworkinggirl closed 1 year ago

javaworkinggirl commented 1 year ago

On Gitlab CI/CD in the main branch, nyx preset='extended' resolves to releaseType=internal instead of mainline.

I attached the raw gitlab log raw.log

I am on the main branch and did a checkin straight for Gitlab and the plugin is saying the branch name is 'e02f6195a9e07fee54bb7b1dbdc20d48dd301808'. That is incorrect.

2023-03-29T01:12:50.734+0000 [DEBUG] [com.mooltiverse.oss.nyx.command.AbstractCommand] Current branch 'e02f6195a9e07fee54bb7b1dbdc20d48dd301808' not matched by release type 'mainline' matchBranches regular expression '^(master|main)$'. Skipping release type 'mainline'

2023-03-29T01:12:50.804+0000 [DEBUG] [com.mooltiverse.oss.nyx.command.AbstractCommand] Evaluating release type: 'internal' 2023-03-29T01:12:50.804+0000 [DEBUG] [com.mooltiverse.oss.nyx.command.AbstractCommand] Release type 'internal' does not specify any branch name requirement 2023-03-29T01:12:50.804+0000 [DEBUG] [com.mooltiverse.oss.nyx.command.AbstractCommand] Release type 'internal' does not specify any environment variable requirement 2023-03-29T01:12:50.805+0000 [DEBUG] [com.mooltiverse.oss.nyx.command.AbstractCommand] Release type 'internal' does not specify any workspace status requirement 2023-03-29T01:12:50.805+0000 [DEBUG] [com.mooltiverse.oss.nyx.command.AbstractCommand] Release type 'internal' has been selected

My .nyx.xml: `commitMessageConventions: enabled:

flelli commented 1 year ago

It looks like your pipeline is cloning the repository in a DETACHED HEAD state (which is the default). See the docs here for more.

This page of the docs should help you fix that.