nedbat / scriv

Changelog management tool

Home Page:https://scriv.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use `gh repo set-default` information?

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