Skip to content

Commit 816a877

Browse files
Expose hidden attribute for comments (#21)
* Expose hidden attribute for comments Co-authored-by: Claude * Update CHANGELOG for #21 Co-authored-by: Claude
1 parent 4aa56d1 commit 816a877

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
12+
- **MCP**: Expose `hidden` attribute for comments to distinguish private from public ([fcf6a7b], [#21])
13+
14+
[fcf6a7b]: https://github.com/studiometa/productive-tools/commit/fcf6a7b
15+
[#21]: https://github.com/studiometa/productive-tools/pull/21
16+
817
## [0.8.4] - 2026-02-10
918

1019
### Fixed

packages/productive-cli/src/formatters/comment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export interface FormattedComment {
1414
commentable_type: string;
1515
draft: boolean;
1616
pinned: boolean;
17+
hidden: boolean;
1718
creator_id?: string;
1819
creator_name?: string;
1920
created_at?: string;
@@ -49,6 +50,7 @@ export function formatComment(comment: JsonApiResource, options?: FormatOptions)
4950
commentable_type: String(attrs.commentable_type || ''),
5051
draft: Boolean(attrs.draft),
5152
pinned: !!attrs.pinned_at,
53+
hidden: Boolean(attrs.hidden),
5254
};
5355

5456
if (opts.includeRelationshipIds && creatorId) {

0 commit comments

Comments
 (0)