Skip to content

Github action that creates a changelog on opening or updating the PR

License

Notifications You must be signed in to change notification settings

Bala-raj/pull-request-changelog

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

Github Action PR Changelog Generator

Github action that creates a changelog on opening or updating the PR.

Dependencies

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.

How it works

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.

How use

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 }}

See the result...

About

Github action that creates a changelog on opening or updating the PR

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%