Skip to content

Commit

Permalink
feat(cli): rename recurring field in Task to scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rymuszka committed Aug 11, 2023
1 parent 6b145a6 commit 5c01aae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/models/project_v1_alpha.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Scheduler struct {

type Task struct {
Name string `json:"name"`
Recurring bool `json:"recurring"`
Scheduled bool `json:"scheduled"`
Id string `json:"id,omitempty"`
Branch string `json:"branch,omitempty"`
At string `json:"at,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions cmd/edit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func Test__EditProject__WithTasks__Response200(t *testing.T) {
{
"name":"cron",
"id":"bb2ba294-d4b3-48bc-90a7-12dd56e9424c",
"recurring":false,
"scheduled":false,
"branch":"master",
"pipeline_file":".semaphore/cron.yml",
"parameters":[
Expand Down Expand Up @@ -294,7 +294,7 @@ func Test__EditProject__WithTasks__Response200(t *testing.T) {

assert.Equal(t, task.Name, "cron")
assert.Equal(t, task.Branch, "master")
assert.Equal(t, task.Recurring, false)
assert.Equal(t, task.Scheduled, false)
assert.Equal(t, task.PipelineFile, ".semaphore/cron.yml")

task_parameter := task.Parameters[0]
Expand Down

0 comments on commit 5c01aae

Please sign in to comment.