Add tags support to notes and team-notes commands#97
Draft
Add tags support to notes and team-notes commands#97
Conversation
Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com> Agent-Logs-Url: https://github.com/hackmdio/hackmd-cli/sessions/db58a90f-83f9-407a-b2a2-c2eacb0bfe8d
…commands Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com> Agent-Logs-Url: https://github.com/hackmdio/hackmd-cli/sessions/db58a90f-83f9-407a-b2a2-c2eacb0bfe8d
Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com> Agent-Logs-Url: https://github.com/hackmdio/hackmd-cli/sessions/dba8311e-aed9-4ee8-80dd-606daddd67ca
Copilot created this pull request from a session on behalf of
Yukaii
March 24, 2026 04:54
View session
Co-authored-by: Yukaii <4230968+Yukaii@users.noreply.github.com> Agent-Logs-Url: https://github.com/hackmdio/hackmd-cli/sessions/7156bf48-aff5-4ff0-b181-2ce53fcebec1
Copilot
AI
changed the title
Remove package-lock.json
Add tags support to notes and team-notes commands
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CLI had no way to set or view note tags, despite the HackMD API returning
tags: string[]on everyNoteobject.Changes
--tags <value>added toflags.tsas a comma-separated string (e.g.tag1,tag2)notes create/team-notes create– accept--tags, pass parsed array to API payload, surface a Tags column in the output tablenotes update/team-notes update– accept--tags, include parsed array in the PATCH payloadnotes/team-notesindex listings – render a Tags columnExample
Since
tagsis not part of the upstreamCreateNoteOptionstype or theupdateNotepayload'sPick, the extended payload is cast through an intersection type (& {tags?: string[]}) before being forwarded to the API client.💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.