Skip to content

Is there a way to disable compare and commit urls? #216

Done

Description

@unlocomqx

Hi

I tried setting them to an empty string

"commitUrlFormat":"",
"compareUrlFormat":"",

But they are still active.

I just want to generate a changelog without the urls

Is it possible?

Thank ypu

Activity

  1. added
    question
    on Mar 27, 2025
  2. TimothyJones commented on Apr 9, 2025

    @TimothyJones
    Member

    Hi! Can you tell me where you set these properties?

  3. unlocomqx commented on Apr 15, 2025

    @unlocomqx
    Author

    In the .versionrc file like this

    {
      "commitUrlFormat":"",
      "compareUrlFormat":"",
      "bumpFiles": [
        {
          "filename": "package.json",
          "type": "json"
        },
        {
          "filename": "dynamicproduct.php",
          "updater": "scripts/updater.cjs"
        }
      ]
    }
    

    Thank you

  4. AndreBezBirolo commented on May 29, 2025

    @AndreBezBirolo

    Same question here.

  5. TimothyJones commented on Jul 21, 2026

    @TimothyJones
    Member

    In version 13, I believe you can do this with:

    // .versionrc.cjs
    module.exports = {
      writerOpts: {
        finalizeContext(context) {
          context.linkReferences = false; // no commit-hash links, no "closes #x" links
          context.linkCompare = false;    // also drop the compare link in the version header
          return context;
        },
      },
    };
    

    However, this replaces the finalizeContext from the standard writer, so it might have other effects that you don't intend. It's a bit of a hack.

    It would be cleaner for commit-and-tag-version to allow you to change the context directly - right now, here we just pass:

    .context({ version: newVersion }),
    

    But there's no reason that we couldn't allow the modification of context there. A PR that addresses this would be welcome.

  6. added
    good first issue
    and removed
    question
    on Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions