Home

Awesome

github-comment-metadata

Go Reference Build Status Test Coverage Go Report Card GitHub last commit License

Parser of metadata github-comment embeds into comment.

Background

github-comment is a CLI tool to post a comment to GitHub commit, issue and pull request. From v3, github-comment embeds metadata into comment to support hide comment.

In addition to github-comment, we develop tfcmt, which is a fork of mercari/tfnotify and post a comment like github-comment. To embed metadata into comment via tfcmt like github-comment, we decide to release this feature as a library and use this in github-comment and tfcmt.

metadata format

<!-- github-comment: JSON object -->

ex.

<!-- github-comment: {"JobID":"xxx","JobName":"plan","SHA1":"79acc0778da6660712a65fd41a48b72cb7ad16c0","TemplateKey":"default","Vars":{}} -->

License

MIT