nedbat / scriv

Changelog management tool
https://scriv.readthedocs.io
Apache License 2.0
256 stars 28 forks source link

Use `gh repo set-default` information? #81

Open nedbat opened 1 year ago

nedbat commented 1 year ago

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 = git@github.com:nedbat/something.git
        fetch = +refs/heads/*:refs/remotes/origin/*
        gh-resolved = base     # <--- new setting