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

Be able to reference .Info.JiraURL in template #251

Open
notjames opened this issue Aug 24, 2023 · 0 comments · May be fixed by #258
Open

Be able to reference .Info.JiraURL in template #251

notjames opened this issue Aug 24, 2023 · 0 comments · May be fixed by #258

Comments

@notjames
Copy link

feature request:
Be able to reference .Info.JiraURL as variable reference in template

Expected Behavior

In a template, be able to do something such as:

{{ range .Versions }}
{{ range .Commits }}
{{ $someJiraProjectVar := whittle out the Jira project from commit message }}
Jira: {{ print .Info.JiraURL "/browse/" $someJiraProjectVar }} 
...
...
...

Actual Behavior

noop

Steps to Reproduce (including precondition)

moot or NA

Screenshot on This Problem (if possible)

unnecessary

davidalpert added a commit to davidalpert/git-chglog that referenced this issue Nov 21, 2023
allows the release note templates to easily create hyperlinks
into jira like

    Jira: {{ print .JiraIssue.BaseURL "/browse/" .JiraIssueID }}

or

    Jira: {{ .JiraIssue.BrowseURL }}

resolves: git-chglog#251
davidalpert added a commit to davidalpert/git-chglog that referenced this issue Nov 21, 2023
allows the release note templates to easily create hyperlinks
into jira like

    Jira: {{ print .JiraIssue.BaseURL "/browse/" .JiraIssueID }}

or

    Jira: {{ .JiraIssue.BrowseURL }}

resolves: git-chglog#251
@davidalpert davidalpert linked a pull request Nov 21, 2023 that will close this issue
2 tasks
davidalpert added a commit to davidalpert/git-chglog that referenced this issue Nov 21, 2023
allows the release note templates to easily create hyperlinks
into jira like

    Jira: {{ print .JiraIssue.BaseURL "/browse/" .JiraIssueID }}

or

    Jira: {{ .JiraIssue.BrowseURL }}

resolves: git-chglog#251
davidalpert added a commit to davidalpert/git-chglog that referenced this issue Nov 21, 2023
allows the release note templates to easily create hyperlinks
into jira like

    Jira: {{ print .JiraIssue.BaseURL "/browse/" .JiraIssueID }}

or

    Jira: {{ .JiraIssue.BrowseURL }}

resolves: git-chglog#251
davidalpert added a commit to davidalpert/git-chglog that referenced this issue Nov 21, 2023
allows the release note templates to easily create hyperlinks
into jira like

    Jira: {{ print .JiraIssue.BaseURL "/browse/" .JiraIssueID }}

or

    Jira: {{ .JiraIssue.BrowseURL }}

resolves: git-chglog#251
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

Successfully merging a pull request may close this issue.

1 participant