Hi !
It would be cool if there was a way to override the fields
part of the embed.
I really like the display of the message when using fields
but, sometimes, the eventDetail
part is huge (when squash merging a PR with lots of commits, github's default is to append all the commit message to the merge commit message).
Currently, there is no way to reproduce the display of what the fields
embed do and passing nocontext
remove the fields entirely.
What do you think about adding an option which, when provided, override the eventDetail value ?
Something event more flexible would be to be able to pass an option with the entire fields
array but I'm not sure if it's possible to passe something like:
with:
fields: ${{ fromJSON('[{"name":"Repository","value":"...","inline":true},{"name":"Ref","value":"...","inline":true},{"name":"Event","value":"...","inline":false},{"name":"Triggered by","value":"...","inline":true},{"name":"Workflow","value":"...","inline":true}]') }}