node-gh / gh

(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
http://nodegh.io
Other
1.71k stars 217 forks source link

Feature: Introduce regex pattern to infer a branch title from #644

Open jwu910 opened 5 years ago

jwu910 commented 5 years ago

Would it be possible to have a configuration property containing a regex pattern that GH could use to name a branch when pulling a PR down?

For example, if someone sends me a PR titled TICKET-1234, I could give GH a regex pattern that matches some TEXT dash NUMBERS and either grab that from the PR title, or from the latest commit as this is also a common practice.