Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Release-Notes-Preview

Actions
Presents a preview of expected release notes should the PR get merged, based on Semantic Release
v1.4.0
By snyk
Verified creator
Star (77)

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Known Vulnerabilities

snyk/release-notes-preview

Summary

GitHub Action to provide preview of expected release notes based on Semantic Release. The preview would be posted on every pull request opened against the desired branch(es).

Prerequisites

An authentication token for GitHub, used for posting the preview of the release notes.

Setup

  1. Generate a GitHub token with sufficient write access to the repository. Privileges depend on whether the project is open sourced or not.
  2. Add the GitHub token as a secret to the repository, named RELEASE_NOTES_GITHUB_TOKEN.
  3. Create a file with the following content under .github/workflows/release-notes.yaml:
name: Release-Notes-Preview

on:
  pull_request:
    branches: [ master ]

jobs:
  preview:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - run: |
        git fetch --prune --unshallow --tags
    - uses: snyk/[email protected]
      with:
        releaseBranch: master
      env:
        GITHUB_PR_USERNAME: ${{ github.actor }}
        GITHUB_TOKEN: ${{ secrets.RELEASE_NOTES_GITHUB_TOKEN }}

Release-Notes-Preview is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Presents a preview of expected release notes should the PR get merged, based on Semantic Release
v1.4.0
By snyk

Verified

GitHub has manually verified the creator of the action as an official partner organization. For more info see About badges in GitHub Marketplace.

Release-Notes-Preview is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.