scriv icon indicating copy to clipboard operation
scriv copied to clipboard

Use `gh repo set-default` information?

Open nedbat opened this issue 2 years ago • 0 comments

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

nedbat avatar Jan 20 '23 17:01 nedbat