semantic-release / semantic-release/release-notes-generator

semantic-release does not correctly parse **Bitbucket** repository URL when the repo is cloned via **HTTP**

Open
#862 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
368
Forks
55
Avg merge
10m
Merged PRs (30d)
1

Description

Current behavior

semantic-release does not correctly parse Bitbucket repository URL when the repo is cloned via HTTP , resulting in non-functional changelog URLs.

NON-working example URL (http://bb.eu.xxx.corp/scm/proj/repo.git) parses {{repository}} as "proj/repo" and {{owner}} as "scm". (Note the /scm is fixed in case of http cloning)
ssh cloned repo working example URL (ssh://git@bb.eu.xxx.corp:7999/proj/repo.git) correctly parses {{repository}} as "repo" and {{owner}} as "proj".

  • git remote get-url origin seems to return either http or ssh URLs depending on how you cloned the repo.
Expected behavior

For this example URL (http://bb.eu.xxx.corp/scm/proj/repo.git) the {{repository}} should be "repo" and {{owner}} is "proj".

semantic-release version

24.2.3

CI environment

jenkins

Plugins used

No response

semantic-release configuration
[
  "@semantic-release/release-notes-generator",
  {
    "preset": "conventionalcommits",
    "host": "http://bb.eu.xxx.corp",
    "linkCompare": true,
    "linkReferences": true
  }
],
CI logs

.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the parsing with the HTTP Bitbucket URL from the report and trace the repository/owner parsing used for changelog links. Done means the URL yields owner "proj" and repository "repo", producing functional changelog URLs while preserving the working SSH case.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript
Domain
release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.