Closed
Description
It seems that the show command always displays the status of a comment as fyi
.
Steps to reproduce
git appraise comment -m 'fyi comment'
git appraise comment -lgtm -m 'lgtm comment'
git appraise comment -nmw -m 'nmw comment'
Then running git appraise show
will show something like:
comment: $SHA
author: $AUTHOR
time: $TIMESTAMP
status: fyi
fyi comment
comment: $SHA
author: $AUTHOR
time: $TIMESTAMP
status: fyi
lgtm comment
comment: $SHA
author: $AUTHOR
time: $TIMESTAMP
status: fyi
nmw comment
On the other hand git appraise show -json
displays the correct status (in the resolved
property):
"comments": [
{
"hash": "$SHA",
"comment": {
"timestamp": "$TIMESTAMP",
"author": "$AUTHOR",
"location": {
"commit": "$SHA"
},
"description": "fyi comment"
}
},
{
"hash": "$SHA",
"comment": {
"timestamp": "$TIMESTAMP",
"author": "$AUTHOR",
"location": {
"commit": "$SHA"
},
"description": "lgtm comment"
"resolved": true
}
},
{
"hash": "$SHA",
"comment": {
"timestamp": "$TIMESTAMP",
"author": "$AUTHOR",
"location": {
"commit": "$SHA"
},
"description": "nmw comment"
"resolved": false
}
}