mathieudutour / github-tag-action

A Github Action to automatically bump and tag master, on merge, with the latest SemVer formatted version. Works on any platform.
https://github.com/marketplace/actions/github-tag
MIT License
641 stars 201 forks source link

RFC: feat: Adding commit filtering by path #193

Open mbarnett-jones opened 1 year ago

mbarnett-jones commented 1 year ago

Problem

We use github-tag-action to generate semver versions and then release notes for a number of projects. We are also using it in a monorepo with 2 different apps and this is where we're running into issues. Because github_tag_action looks at all the commits since the last tag we end up with a bunch of unrelated changes being considered e.g.

feat: Update frontend
feat: Add new python library 

Where ideally we'd only have one bump per app.

Solution

This is quick illustrative PR to explain how I might use the github-tag-action with a mono repo. In this change I added a path based filter to the getCommits - it's not wired through to the config / params that mean people can use it but I wanted to share this approach early to get some feedback before going any further.

Thoughts, comments, criticisms welcome.