Repository navigation
Conversation
schedule create and update take --highlight and --join-url. Update sends neither unless asked, so Basecamp keeps what the entry has; --no-highlight, --no-join-url or --join-url "" remove them. The join link goes out as url and reads back as join_url, as the SDK documents.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Conflict checks miss explicitly supplied false values for --no-highlight and --no-join-url, allowing conflicting flags to write changes instead of returning the promised usage error.
1 open issue
What changed in this PR
Adds schedule-entry highlight and join-link controls to the CLI, exposing existing SDK fields without changing unrelated values during updates. Draft support remains separate.
Changes:
- Adds
--highlightand--join-urlto create and update, plus removal flags for update. - Adds request-body and output tests for setting, clearing, omission, conflicts, and read-back fields.
- Updates API coverage notes and the CLI surface snapshot.
[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or rungh pr ready --undo.
Click "Ready for review" or rungh pr readyto reengage.
| File | Description |
|---|---|
internal/commands/schedule.go |
Adds flags, validation, help examples, and SDK request fields. |
internal/commands/schedule_highlight_test.go |
Tests write behavior and JSON/Markdown output. |
API-COVERAGE.md |
Documents supported fields and clearing behavior. |
.surface |
Records the new schedule command flags. |
Review effort: Balanced
--highlight with --no-highlight=false, and --join-url with --no-join-url=false, slipped past the conflict check, which read the --no- flag's value rather than whether it was given.
This branch has not been deployed
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.

Summary
schedule createandschedule updatetake--highlightand--join-url, covering the SDK'shighlightedandurlfields onCreateScheduleEntryand the update/replace path.updatesends neither unless asked, so Basecamp keeps the entry's current highlight and join link (both are preserved on omission by the full-replace PUT).--no-highlightor--highlight=falseremoves the highlight.--no-join-urlor--join-url ""removes the link. Using both forms of the same flag at once is a usage error, and nothing is sent.urland reads back asjoin_url, as the SDK documents. The response'surlis still the entry's own API URL.showoutput (JSON and human) already carriesjoin_urlandhighlighted. New tests now lock that in.create, an empty--join-urlis left out, since a new entry has no link to clear.Draft status is in #1019 (
schedule create --draft), so this PR leaves it out. The two touch neighbouring lines inschedule.goand.surface, so whichever merges second needs a trivial rebase.Part of the Basecamp card "[CLI] Schedule entries: highlight, join link and draft status".
Verification
--no-*forms, omission (nohighlightedorurlkey on an unrelated update), conflicts, and thatjoin_urlis never sent.bin/cipassed on this commit.bin/setupin the shared bc3 checkout first, and that was out of scope here.Summary by cubic
Adds
--highlightand--join-urlflags toschedule createandschedule updateso schedule entries can be highlighted and carry a join link.--no-highlight,--no-join-url, and--join-url ""remove them.urland reads back asjoin_url;showoutput already exposes both.--join-urlis omitted since a new entry has no link to clear.--no-*form is given an explicitfalse.Written for commit 623df87. Summary will update on new commits.