Releases: cloudposse/github-commenter
Releases · cloudposse/github-commenter
v0.8.0
0.7.0: Add GHE functionality (#19)
* Add Github Enterprise functionality * Use pointers in log output So we get the actual PR ID/comment ID, rather than a memory address. e.g. 2020/07/06 13:30:44 github-commenter: Created GitHub Issue comment 404233 vs 2020/07/06 12:59:02 github-commenter: Created GitHub Issue comment 0xc00009e130
0.6.1
0.6.0: use github actions (#17)
* use github actions * rebuild readme
0.5.0 Remove checking for non-empty input before reading from stdin. Strip ANSI escape codes
what
- Remove checking for non-empty input before reading from stdin
- Strip ANSI escape codes
why
- Checking for an input pipe, and that it actually contains some bytes don't work on Linux (and in
geodesic
) - ANSI escape codes look ugly and are not supported by GitHub
0.4.1 Fix `template_file`
what
- Fix
template_file
why
- When a template is read from a file, the template name must be the name of the file
0.4.0 Add `template_file` argument
0.3.0 Add support for `sprig` functions in Go templates in the `format` argument
what
- Add support for
sprig
functions in Go templates in theformat
argument
why
- To be able to manipulate the text of the comments using various functions in
Go
templates, in particular string replacement and Regular Expressions
GITHUB_COMMENT_FORMAT="Helm diff:<br><br><pre>{{regexReplaceAllLiteral `\\n` . `<br>` }}<pre>"
references
0.2.0 Add `delete-comment-regex` arg. Add `pr-file` and `pr` comment types
what
- Add
delete-comment-regex
arg - Add
pr-file
andpr
comment types
why
-
Some applications, in particular those deployed from a CI/CD pipeline like Codefresh, require deleting previous comments for a PR or Issue from the previous pipeline steps before creating a new comment in the next pipeline step
-
Added new comment types since GitHub API supports five types of comments:
- Comments on Repos/Commits
- Comments on Pull Request Reviews
- Comments on Pull Request Files
- Comments on Issues
- Comments on Pull Requests (in the global section)
Since GitHub considers Pull Requests as Issues,
Comments on Issues
andComments on Pull Requests
use the same API.The module now supports all of these types of comments (type:
commit
,pr-review
,pr-file
,issue
,pr
).
Fix readme
- Fix link on badge
release