You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Release-Notes-Preview
v1.5.2
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).
A pending commit status titled Release Notes Confirmation
would be created when initially posting the release notes.
The commit status would change to success once the checkbox at the bottom of the release notes preview is checked.
An authentication token for GitHub, used for posting the preview of the release notes.
- Generate a GitHub token with sufficient write access to the repository. Privileges depend on whether the project is open sourced or not.
- Add the GitHub token as a secret to the repository, named
RELEASE_NOTES_GITHUB_TOKEN
. - 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 }}