Skip to content

GH release breaks with backticks in changelog #992

@pedro-psb

Description

@pedro-psb

https://github.com/pulp/pulp_rpm/actions/runs/18762026939/job/53528905468#step:6:28

Apparently if the CHANGES have a backtick, javascript wil freak out.

Some snippets from the error:

  await github.rest.repos.createRelease({
    owner: context.repo.owner,
    repo: context.repo.repo,
    tag_name: TAG_NAME,
    body: `## 3.33.0 (2025-10-23) {: #3.33.0 }
  
  #### Features {: #3.33.0-feature }
  
    (...)

  - Fix a bug where the `retain_package_versions` feature (and prune and a few others) was not correctly determining which packages were most recent.

    (...)`
Error: Unhandled error: SyntaxError: Unexpected identifier 'retain_package_versions'

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