Skip to content

Add the ability to add prefix to comment output #1716

Open
@ben-of-codecraft

Description

@ben-of-codecraft

Feature Request

Currently, Digger supports $DIGGER_OUT in workflow custom steps to display output back into the PR comment. This is put into a section block Additional Outputs which is hidden by default.

I would like there to be a way to target a different output variable to prepend before any other comment output. We have done this with security scanning using a custom variable called $DIGGER_PREFIX_OUT. Here is an example image of the output comment using $DIGGER_PREFIX_OUT instead of $DIGGER_OUT:

This would provide more power to customizing the information in the PR to the user for custom extension on top of Digger (security, format, cost, etc)
image

Activity

motatoes

motatoes commented on Sep 23, 2024

@motatoes
Contributor

Regarding this and #1715 I heard a feature request to introduce some sort of templating override for powerusers who want to structure their comments in different ways. Perhaps a "digger.mustache.tpl" file that lives somewhere and instrucructs digger what to include in the outputs somehow. Unformed thoughts, but it seems that its inevetible to allow for powerusers of comments to customise them heavily

ben-of-codecraft

ben-of-codecraft commented on Nov 12, 2024

@ben-of-codecraft
ContributorAuthor

I think some type of templating built in for display would be a welcomed addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @motatoes@ben-of-codecraft

        Issue actions

          Add the ability to add prefix to comment output · Issue #1716 · diggerhq/digger