Skip to content

Changelog domain for self-hosted Gitlab #1128

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

Closed
jdebetaz opened this issue Dec 21, 2024 · 4 comments
Closed

Changelog domain for self-hosted Gitlab #1128

jdebetaz opened this issue Dec 21, 2024 · 4 comments
Labels

Comments

@jdebetaz
Copy link

Question

How can I change the domain url included in the changelog?

When I run poetry run semantic-release --strict version, I get https://gitlab.com instead of https://gitlab.my-domain.com as the link for each commit inside my changelog.

Configuration

Semantic Release Configuration
[tool.semantic_release]
assets = []
build_command = "poetry build -n"
commit_message = "{version} [skip ci]\n\nAutomatically generated by python-semantic-release"
commit_parser = "angular"
logging_use_named_masks = false
major_on_zero = true
tag_format = "v{version}"
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variables = ["bmt_scripts/__init__.py:__version__"]

[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease = false
prerelease_token = "beta"

[tool.semantic_release.changelog]
changelog_file = "CHANGELOG.md"
exclude_commit_patterns = [
  "^Merge branch '.*'$",
  "^Merge pull request #.* from .*$",
]
template_dir = "templates"

[tool.semantic_release.changelog.environment]
autoescape = true
block_end_string = "%}"
block_start_string = "{%"
comment_end_string = "#}"
comment_start_string = "{#"
extensions = []
keep_trailing_newline = false
lstrip_blocks = false
newline_sequence = "\n"
trim_blocks = false
variable_end_string = "}}"
variable_start_string = "{{"

[tool.semantic_release.commit_author]
default = "semantic-release <semantic-release>"
env = "GIT_COMMIT_AUTHOR"

[tool.semantic_release.commit_parser_options]
allowed_tags = [
  "build",
  "chore",
  "ci",
  "docs",
  "feat",
  "fix",
  "perf",
  "style",
  "refactor",
  "test",
  "merge",
]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]

[tool.semantic_release.remote]
ignore_token_for_push = true
name = "origin"
type = "gitlab"

[tool.semantic_release.remote.token]
env = "CI_JOB_TOKEN"

[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true
@jdebetaz jdebetaz added question triage waiting for initial maintainer review labels Dec 21, 2024
@codejedi365
Copy link
Contributor

codejedi365 commented Dec 21, 2024

Recommend reading up on the configuration documentation for defining the remote domain.

Separately, the CI_JOB_TOKEN (#1098) is currently not supported within PSR. If you are looking for GitLab configuration specifics there are multiple issues that include answers to your config, the latest being #1046.

@codejedi365 codejedi365 added awaiting-reply Waiting for response and removed triage waiting for initial maintainer review labels Dec 21, 2024
Copy link

github-actions bot commented Jan 4, 2025

This issue has not received a response in 14 days. If no response is received in 7 days, it will be closed. We look forward to hearing from you.

@buvnswrn
Copy link

Was this issue fixed? I have the same issue and not sure how to proceed with automated releases. Some manual work in changing the URLs after the release and involves another commit too.

@codejedi365
Copy link
Contributor

codejedi365 commented May 13, 2025

Did you read the documentation in my comment above?

It was never an issue as this is supported and the author never responded.

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

No branches or pull requests

3 participants