Skip to content

Commit f80268d

Browse files
author
vilmibm
committed
gh workflow run
1 parent d78e215 commit f80268d

7 files changed

Lines changed: 889 additions & 16 deletions

File tree

pkg/cmd/run/rerun/rerun_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func TestRerun(t *testing.T) {
9898
opts *RerunOptions
9999
tty bool
100100
wantErr bool
101-
ErrOut string
101+
errOut string
102102
wantOut string
103103
}{
104104
{
@@ -157,7 +157,7 @@ func TestRerun(t *testing.T) {
157157
}}))
158158
},
159159
wantErr: true,
160-
ErrOut: "no recent runs have failed; please specify a specific run ID",
160+
errOut: "no recent runs have failed; please specify a specific run ID",
161161
},
162162
{
163163
name: "unrerunnable",
@@ -174,7 +174,7 @@ func TestRerun(t *testing.T) {
174174
httpmock.StatusStringResponse(403, "no"))
175175
},
176176
wantErr: true,
177-
ErrOut: "run 3 cannot be rerun; its workflow file may be broken.",
177+
errOut: "run 3 cannot be rerun; its workflow file may be broken.",
178178
},
179179
}
180180

@@ -203,7 +203,7 @@ func TestRerun(t *testing.T) {
203203
err := runRerun(tt.opts)
204204
if tt.wantErr {
205205
assert.Error(t, err)
206-
assert.Equal(t, tt.ErrOut, err.Error())
206+
assert.Equal(t, tt.errOut, err.Error())
207207
return
208208
}
209209
assert.NoError(t, err)

pkg/cmd/workflow/disable/disable.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ func NewCmdDisable(f *cmdutil.Factory, runF func(*DisableOptions) error) *cobra.
2929
}
3030

3131
cmd := &cobra.Command{
32-
Use: "disable [<workflow ID> | <workflow name>]",
33-
Short: "Disable a workflow",
34-
Args: cobra.MaximumNArgs(1),
35-
Hidden: true,
32+
Use: "disable [<workflow ID> | <workflow name>]",
33+
Short: "Disable a workflow",
34+
Args: cobra.MaximumNArgs(1),
3635
RunE: func(cmd *cobra.Command, args []string) error {
3736
// support `-R, --repo` override
3837
opts.BaseRepo = f.BaseRepo

pkg/cmd/workflow/enable/enable.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ func NewCmdEnable(f *cmdutil.Factory, runF func(*EnableOptions) error) *cobra.Co
2929
}
3030

3131
cmd := &cobra.Command{
32-
Use: "enable [<workflow ID> | <workflow name>]",
33-
Short: "Enable a workflow",
34-
Args: cobra.MaximumNArgs(1),
35-
Hidden: true,
32+
Use: "enable [<workflow ID> | <workflow name>]",
33+
Short: "Enable a workflow",
34+
Args: cobra.MaximumNArgs(1),
3635
RunE: func(cmd *cobra.Command, args []string) error {
3736
// support `-R, --repo` override
3837
opts.BaseRepo = f.BaseRepo

pkg/cmd/workflow/list/list.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman
3333
}
3434

3535
cmd := &cobra.Command{
36-
Use: "list",
37-
Short: "List GitHub Actions workflows",
38-
Args: cobra.NoArgs,
39-
Hidden: true,
36+
Use: "list",
37+
Short: "List GitHub Actions workflows",
38+
Args: cobra.NoArgs,
4039
RunE: func(cmd *cobra.Command, args []string) error {
4140
// support `-R, --repo` override
4241
opts.BaseRepo = f.BaseRepo

0 commit comments

Comments
 (0)