ejoffe / spr

Stacked Pull Requests on GitHub
MIT License
714 stars 65 forks source link

adds option to show pr titles in stack description #371

Closed georgiemathews closed 6 months ago

georgiemathews commented 6 months ago

Summary

This PR adds a new repository config field that toggles displaying each PR's title in the PR body's stack description like so:

**Stack**:
- Title B #2 ⬅
- Title A #1

This is helpful for github enterprise instances that are not on the latest version where PR titles automatically populate alongside PR numbers.

The field is named showPrTitlesInStack and defaults to false.

I've added respective tests to maintain coverage with the added functionality in github/githubclient/client.go and have built and installed this binary locally to dogfood the new behavior.

georgiemathews commented 6 months ago

@ejoffe Let me know what you think!

ejoffe commented 6 months ago

Released in v0.14.6