Skip to content

Use gh repo set-default information? #81

@nedbat

Description

@nedbat

The GitHub gh tool has a command gh repo set-default that sets a default remote when there is more than one. We could use this to determine which remote to use for scriv github-release.

When you use gh repo set-default nedbat/something, a setting is put into the .git/config file:

[remote "origin"]
        url = [email protected]:nedbat/something.git
        fetch = +refs/heads/*:refs/remotes/origin/*
        gh-resolved = base     # <--- new setting

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