Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom variables in template body? #31

Open
hxtree opened this issue Mar 23, 2022 · 0 comments
Open

Use custom variables in template body? #31

hxtree opened this issue Mar 23, 2022 · 0 comments

Comments

@hxtree
Copy link

hxtree commented Mar 23, 2022

I'd like to be able to populate a sandbox URL in the template body. Is this available? Any recommendation on how to proceed?

I'd probably need to do some parsing beforehand, could be done in a prior job e.g. branch name starts off as "hotfix/jira-2434-fixed-whitespace-issue".

# kebab-case branch naming convention pattern:  
# {type}/{id}-{short-description}
subdomain-suffix = '-app';
subdomain = "{id}-{short-description}{subdomain-suffix}"
domain = 'example.com';
url = https://{subdomain}.{domain}/

Sandbox: %url%

Thus the template body gets updated like so:

Sandbox: https://jira-2434-fixed-whitespace-issue-app.sandbox.example.com/

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant