github-pullrequest-resource icon indicating copy to clipboard operation
github-pullrequest-resource copied to clipboard

Add ability to define comment using static text

Open skennedy opened this issue 7 years ago • 1 comments

Was wondering if you would accept a PR to allow specifying a PR comment using static text, rather than file contents?

This is very much inspired by the slack resource (https://github.com/cloudfoundry-community/slack-notification-resource#parameters), where you can define your message using static text which can be parameterised by the build metadata.

Without this feature, it is surprisingly tricky to write comments incorporating this metadata - because metadata is hidden from task steps by design - so I had to resort to using swce/metadata-resource and then define a task to create the comment file using the metadata. All rather cumbersome.

skennedy avatar Apr 24 '18 13:04 skennedy

Yeah, I think this is a great idea. I would accept a PR on it.

crstamps2 avatar Apr 27 '18 15:04 crstamps2