•  


Automatically generated release notes - GitHub Docs
Skip to main content

Automatically generated release notes

You can automatically generate release notes for your GitHub releases

Who can use this feature?

Repository collaborators and people with write access to a repository can generate and customize automated release notes for a release.

About automatically generated release notes

Automatically generated release notes provide an automated alternative to manually writing release notes for your GitHub releases. With automatically generated release notes, you can quickly generate an overview of the contents of a release. Automatically generated release notes include a list of merged pull requests, a list of contributors to the release, and a link to a full changelog.

You can also customize your automated release notes, using labels to create custom categories to organize pull requests you want to include, and exclude certain labels and users from appearing in the output.

Creating automatically generated release notes for a new release

  1. On GitHub.com, navigate to the main page of the repository.

  2. To the right of the list of files, click Releases .

    Screenshot of the main page of a repository. A link, labeled "Releases", is highlighted with an orange outline.

  3. At the top of the page, click Draft a new release .

  4. To choose a tag for the release, select the Choose a tag dropdown menu.

    • To use an existing tag, click the tag.
    • To create a new tag, type a version number for your release, then click Create new tag .
  5. If you created a new tag, select the Target dropdown menu, then click the branch that contains the project you want to release.

  6. Optionally, above the description field, select the Previous tag dropdown menu, then click the tag that identifies the previous release.

    Screenshot of the "New release" form. A dropdown menu, labeled "Previous tag: auto", is highlighted with an orange outline.

  7. In the "Release title" field, type a title for your release.

  8. Above the description field, click Generate release notes .

  9. Check the generated notes to ensure they include all (and only) the information you want to include.

  10. Optionally, to include binary files such as compiled programs in your release, drag and drop or manually select files in the binaries box.

  11. Optionally, to notify users that the release is not ready for production and may be unstable, select This is a pre-release .

  12. Optionally, select Set as latest release . If you do not select this option, the latest release label will automatically be assigned based on semantic versioning.

  13. Optionally, if GitHub Discussions is enabled for the repository, create a discussion for the release.

    • Select Create a discussion for this release .
    • Select the Category dropdown menu, then click a category for the release discussion.
  14. If you're ready to publicize your release, click Publish release . To work on the release later, click Save draft . You can then view your published or draft releases in the releases feed for your repository. For more information, see " Viewing your repository's releases and tags ."

Configuring automatically generated release notes

  1. On GitHub.com, navigate to the main page of the repository.

  2. Above the list of files, select the Add file dropdown menu, then click Create new file .

    Alternatively, you can click in the file tree view on the left.

    Screenshot of the main page of a repository. Above the list of files, a button, labeled "Add file," is outlined in dark orange. In the file tree view of the repository, a button with a plus sign icon is also outlined in dark orange.

  3. In the file name field, type .github/release.yml . This will create a new file called release.yml in the .github directory.

  4. In the file, using the configuration options below, specify in YAML the pull request labels and authors you want to exclude from this release. You can also create new categories and list the pull request labels to be included in each of them.

Configuration options

Parameter Description
changelog.exclude.labels A list of labels that exclude a pull request from appearing in release notes.
changelog.exclude.authors A list of user or bot login handles whose pull requests are to be excluded from release notes.
changelog.categories[*].title Required. The title of a category of changes in release notes.
changelog.categories[*].labels Required. Labels that qualify a pull request for this category. Use * as a catch-all for pull requests that didn't match any of the previous categories.
changelog.categories[*].exclude.labels A list of labels that exclude a pull request from appearing in this category.
changelog.categories[*].exclude.authors A list of user or bot login handles whose pull requests are to be excluded from this category.

Example configurations

A configuration for a repository that labels semver releases

YAML
# .github/release.yml


changelog:

  exclude:

    labels:

      -
 ignore-for-release

    authors:

      -
 octocat

  categories:

    -
 title:
 Breaking
 Changes
 ??

      labels:

        -
 Semver-Major

        -
 breaking-change

    -
 title:
 Exciting
 New
 Features
 ??

      labels:

        -
 Semver-Minor

        -
 enhancement

    -
 title:
 Other
 Changes

      labels:

        -
 "*"

A configuration for a repository that doesn't tag pull requests but where we want to separate out Dependabot automated pull requests in release notes ( labels: '*' is required to display a catchall category)

YAML
# .github/release.yml


changelog:

  categories:

    -
 title:
 ??
 Features

      labels:

        -
 '*'

      exclude:

        labels:

          -
 dependencies

    -
 title:
 ??
 Dependencies

      labels:

        -
 dependencies

Further reading

- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본