+
Skip to content

issue: allow configurable default or default to current repo origin #4

Open
@bmizerany

Description

@bmizerany

Currently, issue defaults to the golang/go repo and there exists no way to change this. This means those using issue and not working on that repo must frequently supply a -p user/repo. I think it would be nice if issue was a little "smarter" about the repo I'm interested in and so I propose adding smarter defaults using the following rules, each overriding the next:

  • issue commands use -p if supplied
  • issue commands default to git config github.issue.repo.always if supplied
  • issue commands default to the origin repo if supplied and its host is github
  • issue commands default to git config github.issue.repo if supplied
  • issue commands default to golang/go if none of the above are satisfied.

I'm not married to the git config names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载