Skip to content

No way to configure default remote for gh run #3434

@macrael

Description

@macrael

Describe the bug

The new gh run list and gh run watch commands don't ask which repository to run against and keep picking a remote I don't care about. If I use gh pr list it asks for a default and saves that somewhere, but there's no such facility for the new action commands.

It seems like 'origin' would be an easy default. I'm passing -R to select one instead but would love to not have to do that.

gh version 1.9.1 (2021-04-15)
https://github.com/cli/cli/releases/tag/v1.9.1

Steps to reproduce the behavior

  1. setup a repository with two remotes (mine are origin and upstream)
  2. type gh run list

Expected vs actual behavior

I first expected that the default to be picked would be 'origin', but then I experimented with gh pr list. I think I'd expect it to work the same as that where it prompts which remote to use as the default.

ACTUAL RESULTS:
my 'upstream' remote has its actions listed. No prompt is displayed for which remote to use. I have to use '-R' to list my origin repo's actions.

Metadata

Metadata

Assignees

Labels

actionsbugSomething isn't workingpriority-1Affects a large population and inhibits work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions