Skip to content

Conversation

migmartri
Copy link
Member

Adds a SummaryTable(req) helper method to the plugins SDK that returns an workflow + attestation summary in text/markdown or html format (configurable)

This patch also updates the three integrations that use these kind of metadata

Discord

image

Slack

image

Email

image

Closes #249

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri requested a review from danlishka July 19, 2023 20:51
@migmartri migmartri changed the title Update notification feat: add summary table in plugins SDK Jul 19, 2023
return fmt.Errorf("workflowRun not found")
}

workflowMetadata := &sdk.ChainloopMetadata{
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed to increase the amount of metadata that we injected in the plugin. Including now information about the workflow run

}, nil
}

func MetadataSDKToProto(in *sdk.ChainloopMetadata) *ExecuteRequest_Metadata {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new plugin system needed to be extended to know how to translate the new metadata payload

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Copy link
Member

@danlishka danlishka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love all these render helpers. Thanks!

@migmartri migmartri merged commit 764e50f into chainloop-dev:main Jul 20, 2023
@migmartri migmartri deleted the update-notification branch July 20, 2023 12:56
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 this pull request may close these issues.

Improve notifications attestation msg

2 participants