Skip to content

gh project view with web flag does not open interactive mode #8721

@harveysanders

Description

@harveysanders

I'm not sure if this is a bug or a not-yet-implemented feature.
gh project view with web flag does not open interactive mode

Describe the bug

gh project view with web flag does not open interactive mode, instead opens the browser with a project URL missing with zero values for organization and project number.

Steps to reproduce the behavior

  1. In any repo directory, run the following command:
$ gh project view --web

Opens the browser with the URL:

https://github.com/orgs//projects/0

Expected vs actual behavior

Based on how the project command works without the --web flag, I would expect the command to start interactive mode and prompt me to select a project. Instead, it opens the browser with a URL that is missing the organization and project number.

$ gh project view
? Which owner would you like to use?  [Use arrows to move, type to filter]
> harveysanders
# ... rest of available organizations

Many of the other commands start interactive mode when the --web and no other arguments are provided. For example, gh run view --web starts interactive mode and prompts me to select a run.
Ex. running the view command in this cli/cli repo:

gh run view --web
? Select a workflow run  [Use arrows to move, type to filter]
> - Unexpecte comparison operator error when using templates with graphql query, Discussion Triage (trunk) 50m38s ago
  ✓ Unexpecte comparison operator error when using templates with graphql query, Issue Automation (trunk) 50m46s ago
  - Unexpecte comparison operator error when using templates with graphql query, Discussion Triage (trunk) 50m46s ago

Given this behavior on some of the other commands, I expected the same behavior for project.

Anyway, thanks for building this great tool. I use it nearly every day. I'd be happy to submit a PR in time if this is not a high-priority issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-projectrelating to the gh project commandhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions