You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support schedule entry drafts, highlights, and join links - #1019
schedule create --draft saves an unpublished entry; omitted or --draft=false explicitly creates an active entry. Draft output includes its link and guidance to publish in Basecamp.
schedule create and schedule update accept --highlight and --join-url. --highlight=false removes the highlight and --join-url="" clears the join link. Omitted options preserve existing values on update. The SDK writes the join link as url; responses expose it as join_url, separate from the API address.
Preserve the original draft implementation and regression fixes, bring it up to current main, and add request regressions, CLI surface entries, skill guidance, and API coverage notes.
Publishing and generic status updates are deliberately excluded: SDK update/replace requests expose no status field. Open the returned draft link in Basecamp to publish. Existing recording archive/trash/restore commands cover lifecycle changes; archived/trashed schedule listing already exists.
Validation: full local bin/ci passed. Isolated BC3 runtime run 20261121-231236-schedule-entry-options demonstrated the old flag rejection and independently read back draft/default/false creation, setting and clearing links/highlights, scheme-less URL normalization, preservation across unrelated edits, and unchanged draft status on update. Created entries were trashed. Evidence: ~/.local/state/basecamp-cli-verify/runs/20261121-231236-schedule-entry-options/. Runtime used local BC3 master 0cf334994c1; environment-dependent CI skips are not claimed as live coverage.
The reason will be displayed to describe this comment to others. Learn more.
🟢 Approved
No active review issues are reported for the new schedule draft-creation option.
No open issues 🎉
What changed in this PR
Adds explicit draft creation to basecamp schedule create while preserving published-by-default behavior.
Changes:
Adds --draft to send status: drafted; omitted or false sends status: active.
Labels draft output, directs users to Basecamp for editing and publishing, and preserves account/profile scope in follow-up commands.
Adds regression and write-smoke coverage, plus CLI surface and API coverage updates.
[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
File
Description
internal/commands/schedule.go
Adds draft creation, publication status, and scoped follow-up guidance.
internal/commands/schedule_draft_test.go
Covers publication states, draft output, and follow-up scope.
e2e/smoke/smoke_schedule_write.bats
Verifies creation and read-back for all three flag modes.
API-COVERAGE.md
Documents draft creation and the Basecamp publishing workflow.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Drafts with unresolved mentions incorrectly emit informational publication guidance on stderr in quiet/agent mode; the diagnostic should contain only the mention warning, with regression coverage for this case.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Limit quiet-mode diagnostics to unresolved mention warnings
internal/commands/schedule.go:640
With --draft and an unresolved mention in --description, notice contains both the publication guidance and the mention warning. Passing that combined text to WithDiagnostic causes quiet/agent mode to print the draft guidance on stderr too (internal/output/envelope.go:239–247), despite the intended informational-only behavior. Keep the combined notice for envelope formats, but emit only mentionNotice as the quiet-mode diagnostic; add a regression covering a draft with an unresolved mention.
🤖 Fixed the quiet-mode unresolved-mention finding in 275d065. JSON keeps both draft guidance and the mention warning; quiet/agent stderr contains only the mention warning. The new JSON/quiet regression failed before the fix and passes now. Full local bin/ci passed on this commit, as did isolated draft/omitted/false readbacks, the updated smoke test, and a real quiet draft with a synthetic unresolved mention. Hosted checks and fresh reviews are running.
…ub.com/basecamp/basecamp-cli into schedule-entry-options
* 'cli-cleanup/schedule-draft-10476950659' of https://github.com/basecamp/basecamp-cli:
Limit quiet draft diagnostics to unresolved mentions
Keep draft guidance informational and assert its notice field
Add explicit draft creation for schedule entries
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The update fixture lacks populated URL and highlight options, so it would miss a regression that incorrectly writes the response URL during a summary-only edit.
The failed race shard reported TestRateLimiterRetryAfter's remaining-time assertion (got 0s), with no data-race report. Its 50 ms wall-clock block could expire during filesystem work. The test now uses testing/synctest and asserts exact remaining time, rejection immediately before expiry, and admission at the deadline. Production code is unchanged.
Validation: full bin/ci passed; schedule option regressions passed under -race; the retry-after test passed 100 race-instrumented runs; the entire resilience package passed under -race. The strengthened populated-options fixture review thread is resolved. Fresh hosted checks will run on this push.
* origin/main:
Let auth login reach a beta preview on a private network (#1054)
Resubscribe the feed when its socket stays connected and stops delivering (#1056)
Open pin-comment repair PRs as the org PR bot (#1052)
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human review is needed for the broader unattended-execution, socket-authority, trust-migration, and platform-specific runner changes, since reported live validation covers only schedules.
Fixed the Nix check in a00d14b after updating this branch to current main. CI builds the merge with main; newer imports there change the vendored package graph even though go.mod/go.sum are unchanged. The branch alone still produced the previous vendor hash, so reproducing the merge was necessary before verifying the new one.
Updated nix/package.nix to the hash Nix computed for the merged source. Native scripts/nix-build-check.sh now succeeds and runs the built binary (basecamp version 0.30.0). Full bin/ci passed on the updated branch. Fresh hosted checks will run on this push.
Checked this against the current PR diff at a00d14b. There are no connector/runner, socket-authority, trust-migration, or platform-specific execution changes in this PR's diff against main; those changes came from main via the branch updates and are already part of the base.
The current 10-file diff contains schedule options/draft creation, their tests and documentation, a test-only retry-after timing fix, and the Nix vendor hash needed for the current imports. Live validation covers the changed schedule commands; the retry-after test passed repeated race-instrumented runs and the resilience package passed -race. Full bin/ci and the native Nix build pass locally. The populated-options review finding is resolved, with no open review threads. No additional implementation change is needed for the broader runner concern.
…950575
* origin/main:
Keep a person's client flag when it is false (#1055)
Filter gauge listings by chosen projects (#1049)
Say how to recover a broken connect.json, and keep reporting around it (#1053)
Support schedule entry drafts, highlights, and join links (#1019)
Let auth login reach a beta preview on a private network (#1054)
Resubscribe the feed when its socket stays connected and stops delivering (#1056)
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
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.
Schedule entries can now be created as drafts, highlighted, and given join links from the CLI. This completes the options requested by https://app.basecamp.com/2914079/buckets/48521764/card_tables/cards/10476950659.
schedule create --draftsaves an unpublished entry; omitted or--draft=falseexplicitly creates an active entry. Draft output includes its link and guidance to publish in Basecamp.schedule createandschedule updateaccept--highlightand--join-url.--highlight=falseremoves the highlight and--join-url=""clears the join link. Omitted options preserve existing values on update. The SDK writes the join link asurl; responses expose it asjoin_url, separate from the API address.Publishing and generic status updates are deliberately excluded: SDK update/replace requests expose no status field. Open the returned draft link in Basecamp to publish. Existing recording archive/trash/restore commands cover lifecycle changes; archived/trashed schedule listing already exists.
Validation: full local
bin/cipassed. Isolated BC3 runtime run20261121-231236-schedule-entry-optionsdemonstrated the old flag rejection and independently read back draft/default/false creation, setting and clearing links/highlights, scheme-less URL normalization, preservation across unrelated edits, and unchanged draft status on update. Created entries were trashed. Evidence:~/.local/state/basecamp-cli-verify/runs/20261121-231236-schedule-entry-options/. Runtime used local BC3 master0cf334994c1; environment-dependent CI skips are not claimed as live coverage.