Skip to content

gh workflow enable via name not working #5025

@baztian

Description

@baztian

Describe the bug

Trying to enable a workflow seems to only work via it's workflow-id but not via workflow-name even though the command line help describes the possibility to do so.

gh version 2.4.0 (2021-12-21)

Steps to reproduce the behavior

$ gh workflow list -a
CI                         disabled_inactivity  4937971
Publish to galaxy  active                     4938062
$ gh workflow enable CI
could not find any workflows named CI
$ gh workflow enable 4937971
✓ Enabled CI

Expected vs actual behavior

I'm expecting gh workflow enable to enable a workflow also by it's name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issuehelp wantedContributions welcomepriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions