[NO-MERGE][CMPT-5391] feat(pipelines): add dr pipelines schedule subcommand group - #5
Closed
sunny2get wants to merge 14 commits into
Closed
[NO-MERGE][CMPT-5391] feat(pipelines): add dr pipelines schedule subcommand group#5sunny2get wants to merge 14 commits into
sunny2get wants to merge 14 commits into
Conversation
4 tasks
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 25, 2026 17:17
3ee2586 to
acb594c
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 25, 2026 17:17
35404a1 to
94ce21f
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 25, 2026 17:40
acb594c to
81a9af4
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 25, 2026 17:40
94ce21f to
5ea6ed1
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 25, 2026 17:45
81a9af4 to
81c5e2f
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 25, 2026 17:45
5ea6ed1 to
7eff4b1
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 25, 2026 18:04
81c5e2f to
30b4457
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 25, 2026 18:06
7eff4b1 to
5a694f0
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 25, 2026 18:51
30b4457 to
e6f95b1
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
2 times, most recently
from
May 25, 2026 20:33
3e310d8 to
e834c10
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
2 times, most recently
from
May 27, 2026 15:57
1cbe1f0 to
d02bc3c
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 27, 2026 15:57
e834c10 to
4e305a6
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 27, 2026 16:19
d02bc3c to
b0004a8
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 27, 2026 16:19
4e305a6 to
56c366b
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 27, 2026 16:30
b0004a8 to
db0a2cc
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 27, 2026 16:30
56c366b to
9d3527b
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 27, 2026 16:35
db0a2cc to
f895bef
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 27, 2026 16:35
9d3527b to
1c8a8b8
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 28, 2026 14:37
f895bef to
44e76ff
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 28, 2026 14:37
1c8a8b8 to
3e873ef
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 28, 2026 14:40
44e76ff to
7b6caf0
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 28, 2026 14:40
3e873ef to
52f6f03
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 28, 2026 14:46
7b6caf0 to
eda298a
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 28, 2026 14:46
52f6f03 to
3c81e39
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 28, 2026 15:30
eda298a to
0c11ebd
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
May 28, 2026 15:30
3c81e39 to
0f77eb6
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
May 28, 2026 15:35
0c11ebd to
ac208cb
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
June 1, 2026 16:09
ea0c27c to
c118196
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
June 1, 2026 16:15
401e448 to
228a53b
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
June 1, 2026 16:16
c118196 to
7764148
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
June 1, 2026 16:24
228a53b to
022d33d
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
June 1, 2026 16:25
7764148 to
19da909
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
June 1, 2026 16:29
022d33d to
183bc33
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
June 1, 2026 16:29
19da909 to
7e4887c
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
June 1, 2026 17:11
183bc33 to
35653a5
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
June 1, 2026 17:11
7e4887c to
f2dc161
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
June 1, 2026 17:53
35653a5 to
1c336c6
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
June 1, 2026 17:54
f2dc161 to
f31a44b
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-inputs
branch
from
June 2, 2026 20:34
1c336c6 to
cba8234
Compare
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
2 times, most recently
from
June 3, 2026 16:16
e6effed to
4f0e900
Compare
…obot-oss#547) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n, limit defaults, version prefix Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds the schedule subcommand group for managing recurring (cron) runs on locked pipeline versions (create/list/get/update/delete). - internal/pipelines/schedule.go: CreateSchedule, ListSchedules, GetSchedule, UpdateSchedule, DeleteSchedule - cmd/pipelines/schedule/: schedule create/list/get/update/delete + scheduleutil - docs: schedule section in pipelines.md, schedule endpoints in pipelines-reference.md Schedules are locked-only — every verb requires both --pipeline and --version flags. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Apply sunny/pipelines versions of schedule subcommand files and update all import paths to use internal/pipeline (singular) after rename. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n, limit defaults, version prefix Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…keys Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sunny2get
force-pushed
the
cmpt-5391/pipelines-schedules
branch
from
June 3, 2026 20:45
4f0e900 to
0ac9d44
Compare
…t empty cron on update
- Add MarkFlagRequired("version") to all 5 schedule subcommands; remove manual
"is required" RunE check for the missing-flag case (cobra now handles it)
- Add MarkFlagRequired("cron") to schedule create; remove manual empty check
- In schedule update buildUpdateBody: reject --cron="" explicitly to prevent
patching an empty cron_expression (set-but-empty was treated as a real change)
- Rename TestCmd_RejectsZeroVersion -> TestCmd_RejectsMissingVersion and update
assertions from "--version"/"--cron" to "version"/"cron" to match cobra error format
- Add TestBuildUpdateBody_RejectsEmptyCron
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…zone guard, drop unused pipelineID param
- create/cmd.go: align --version error message with other verbs ("is required and must be > 0")
- update/cmd.go: reject --timezone="" the same way --cron="" is rejected; rename unused
pipelineID param to _ in buildUpdateBody signature
- update/cmd_test.go: add TestBuildUpdateBody_RejectsEmptyTimezone
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
dr pipelines schedule create/list/get/update/delete— manage recurring (cron) runs on locked pipeline versions--pipelineand--versionschedule updaterequires at least one of--cronor--timezonecmd/pipelines/schedule/scheduleutil/rendering helpers andinternal/pipelines/schedule.goStacked on:
cmpt-5391/pipelines-inputs— diff here shows only the delta.Test plan
go build ./...go test ./cmd/pipelines/schedule/... ./internal/pipelines/...dr pipelines schedule --help— shows create/list/get/update/deletedr pipelines schedule create --pipeline <id> --version 1 --help🤖 Generated with Claude Code