Skip to content
Discussion options

You must be logged in to vote

There is no native way to change the "What's Changed" header directly. It is hardcoded by GitHub.

However, you can programmatically replace it before publishing by using GitHub Actions and the gh CLI. The standard approach is to generate the default release notes via the API, use sed for your regex replacement, and then create the release using that modified file.

A workflow example:

name: Custom Release Notes

on:
  push:
    tags:
      - 'v*'

permissions:
  contents: write

jobs:
  create-release:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Generate, modify and publish notes
        env:
          GH_TOKEN: ${{ sec…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AlinaWan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development source:ui Discussions created via Community GitHub templates
3 participants