Skip to content

Add messages publish command#294

Merged
jeremy merged 2 commits intomainfrom
bc-9665161332
Mar 15, 2026
Merged

Add messages publish command#294
jeremy merged 2 commits intomainfrom
bc-9665161332

Conversation

@jeremy
Copy link
Member

@jeremy jeremy commented Mar 13, 2026

Summary

  • Adds basecamp messages publish <id|url> to promote draft messages to active/published status
  • Uses the existing SDK Update method with Status: "active" — no new SDK surface needed
  • Updates catalog, surface snapshot, API coverage, and skill file

Closes https://3.basecamp.com/2914079/buckets/46292715/card_tables/cards/9665161332

Test plan

  • bin/ci passes (verified locally)
  • basecamp message "test" "body" --draft --in <project> creates a draft
  • basecamp messages publish <id> promotes it to active
  • basecamp messages show <id> confirms status is "active" after publish

Summary by cubic

Adds basecamp messages publish <id|url> to publish draft messages from the CLI. Adds tests for arg validation and verifies updates send status "active".

  • New Features
    • Added publish subcommand under messages (accepts ID or URL).
    • Reuses SDK update with Status: "active"; no SDK changes.
    • Updated command catalog, surface snapshot, API coverage, and SKILL.md.

Written for commit 94ba5cc. Summary will update on new commits.

The SDK already supports setting Status on UpdateMessageRequest, but
the CLI had no way to publish a draft message. This adds
`basecamp messages publish <id>` which sets status to "active".
@jeremy jeremy requested a review from a team as a code owner March 13, 2026 23:23
Copilot AI review requested due to automatic review settings March 13, 2026 23:23
@github-actions github-actions bot added commands CLI command implementations skills Agent skills docs enhancement New feature or request labels Mar 13, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new CLI subcommand to publish (promote) draft message-board messages by setting their status to active, using the existing Basecamp SDK Messages().Update call (no SDK surface changes).

Changes:

  • Introduces basecamp messages publish <id|url> command that updates a message’s Status to "active".
  • Updates the command catalog and CLI surface snapshot to include the new subcommand.
  • Refreshes user-facing docs/metadata (skill doc + API coverage notes) to mention draft creation and publishing.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/commands/messages.go Adds newMessagesPublishCmd() and registers it under the messages command group.
internal/commands/commands.go Adds publish to the catalog “messages” actions list.
API-COVERAGE.md Updates the “messages” row to mention publish and draft support.
.surface Updates the surface snapshot to include the new messages publish command and inherited flags.
skills/basecamp/SKILL.md Adds examples for creating drafts and publishing them.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Covers arg validation (missing/invalid ID) and verifies the SDK
request sets status to "active" via a mock transport.
@github-actions github-actions bot added the tests Tests (unit and e2e) label Mar 14, 2026
@basecamp basecamp deleted a comment from chatgpt-codex-connector bot Mar 15, 2026
@jeremy jeremy merged commit b0cfb34 into main Mar 15, 2026
26 checks passed
@jeremy jeremy deleted the bc-9665161332 branch March 15, 2026 17:04
jeremy added a commit that referenced this pull request Mar 15, 2026
Covers the gap from #294 — creates a draft, publishes it, then cleans up.
jeremy added a commit that referenced this pull request Mar 15, 2026
Covers the gap from #294 — creates a draft, publishes it, then cleans up.
jeremy added a commit that referenced this pull request Mar 15, 2026
Covers the gap from #294 — creates a draft, publishes it, then cleans up.
jeremy added a commit that referenced this pull request Mar 15, 2026
Covers the gap from #294 — creates a draft, publishes it, then cleans up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands CLI command implementations docs enhancement New feature or request skills Agent skills tests Tests (unit and e2e)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants