Skip to content

Commit

Permalink
Merge pull request #4 from gbh-tech/fix-DSO-00-fix-update-command-flag
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercm1410 authored Jun 17, 2024
2 parents 4a1d7f3 + 0bf208b commit 694f761
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@


## [0.2.1](https://github.com/gbh-tech/github-pr-commenter/compare/v0.2.0...v0.2.1) (2024-06-17)


### Bug Fixes

* (DSO-00) Fix update command ([039cbb1](https://github.com/gbh-tech/github-pr-commenter/commit/039cbb1bb78bff1af33b6831c86d8d6c722e685d))

## 0.2.0 (2024-06-17)


Expand Down
3 changes: 1 addition & 2 deletions cmd/update_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ func init() {

updateCommentPrCmd.PersistentFlags().StringP("content", "c", "", "Comment Content")
updateCommentPrCmd.PersistentFlags().StringP("filePath", "f", "", "File path")
createCommentPrCmd.PersistentFlags().Int64P("commentID", "i", 0, "Comment ID")

updateCommentPrCmd.PersistentFlags().Int64P("commentID", "i", 0, "Comment ID")
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "commenter",
"version": "0.2.0",
"version": "0.2.1",
"description": "GitHun PR commenter tool",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func UpdateComment(commentID int64, org, repo, content, filePath string) {
var client GithubClient
DeclareClient(&client)

commentBody := "```\n" + content + "```"
commentBody := content
if filePath != "" {
commentBody = "```\n" + files.ParseFileContent(filePath) + "```"
}
Expand Down

0 comments on commit 694f761

Please sign in to comment.