tzkhan / pr-update-action

GitHub Action that updates a pull request with information extracted from branch name

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option to replace/encode the branch names

st-schilling opened this issue · comments

Hello,

our branches (aka. %headbranch%) are called using pattern "feature/XXX". This name is then supposed to be used to create a Sonarqube link, using this Github action.
Problem: the name, we get using %headbranch% stays e.g. "feature/XXX", but we need it encoded, such that the link still works. So the Jira link would be something like "https://HOST/PROJECT?branch=feature%2FXXX".

Any chance, this might be a possible result variable, e.g. "headbranchencoded%?

Thanks in advance and please do not hesitate to contact me, if any question arises.

Stefan

+1 I would also like to be able to modify the %headbranch% variable with sed or something similar.