git-town / action

Visualizes your stacked changes when proposing pull requests on GitHub
https://www.git-town.com
MIT License
10 stars 2 forks source link

Skip adding comment on solo PR's #35

Closed stoopkidddd closed 2 months ago

stoopkidddd commented 4 months ago

Going to take a stab at making a PR for this, but wanted to put an issue up first.

It would be nice if there was a config option to tell the github action not to add a stack to the description if the PR isn't actually part of a stack, but just a solo PR pointing to the trunk by itself with no children

There are other people on my team not stacking their PR's, and having the comment added to their solo PRs is very confusing and does not lend to an opt-in approach.

Config option proposal - skipSinglePR: boolean added in config.ts -> configSchema

tranhl commented 4 months ago

@stoopkidddd Thanks for the suggestion! I can definitely see how always printing the stack can be confusing for other team members who don't stack their PRs.

Adding this feature will involve:

PRs are very much welcome, so if you feel up for the task by all means submit one!