Fetch PR title from management tool
zaknafeyn opened this issue · comments
Allow generating PR titles from management tool ticket in addition for parsing branch name.
It could be a parameter like for creating branch e.g. gh prx TCKT-1234 --web
or additional flag gh prx TCKT-1234 --issue TCKT-1234 --web
When param or flag is used PR title is getting from management tool and title is composed according to template set in config file
Hi @zaknafeyn 👋🏼
Thanks for opening this issue!
At the moment, when a variable is a part of the pr title template, and it doesn't exist on the branch, then gh prx
asks the user interactively to fill it. For example:
branch:
pattern: "{{.Description}}"
pr:
title: "{{.Issue}}"
Using this configuration, when running gh prx create
, then it will prompt the user to fill the missing {{.Issue}}
.
Does that fulfill your need?