Skip to content

Render template update messages as markdown #12049

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

Closed
TheZoker opened this issue Feb 7, 2024 · 1 comment · Fixed by #12273
Closed

Render template update messages as markdown #12049

TheZoker opened this issue Feb 7, 2024 · 1 comment · Fixed by #12273
Assignees
Labels
site Area: frontend dashboard

Comments

@TheZoker
Copy link

TheZoker commented Feb 7, 2024

Hi there,

We like to include the changelog for every update to our templates.
Currently we pass the release changelogs to the --message section of the coder templates push command, like this (via github actions):

      - name: "Push template"
        run: |
          coder templates push $CODER_TEMPLATE_NAME --directory $CODER_TEMPLATE_DIR --yes --name="$CODER_TEMPLATE_VERSION" --message="$CODER_TEMPLATE_MESSAGE"
        env:
          ...
          CODER_TEMPLATE_MESSAGE: ${{ gitea.event.release.body }}

While the release notes looks like this:
image

The changelog then looks like this:
image

It would be nice, if we can have multiline or markdown support, so it looks more like this:
image

Thanks!

@cdr-bot cdr-bot bot added the feature label Feb 7, 2024
@kylecarbs
Copy link
Member

Great idea! Thanks for the request.

@kylecarbs kylecarbs changed the title Feature Request: Allow for multiline or markdown message within the --message element of coder templates push Allow markdown in template update messages Feb 7, 2024
@kylecarbs kylecarbs changed the title Allow markdown in template update messages Render template update messages as markdown Feb 7, 2024
@kylecarbs kylecarbs added the site Area: frontend dashboard label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site Area: frontend dashboard
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants