Github action that creates a changelog on opening or updating the PR.
To use this action, you need to use it together with action/checkout
from github.
We need that to access git changes. See usage example under.
Whenever you open a PR to base branch, action will compare base branch with your branch and post a comment to PR with all the changes that are going to be merged to base branch.
There are a few assumptions that you should be aware, when you're using this action.
Create a file .github/workflows/changelog.yml
with:
name: Changelog Generator
on:
pull_request:
branches:
- master
types: [opened, reopened, synchronize]
jobs:
changelog:
name: Chanegelog Generator
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: bala-raj/pull-request-changelog@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.event.pull_request.base.ref }}