sudoforge opened
right now, when importing bugs from a bridge (say, github), URIs like github.com/git-bug/git-bug/issues/000 and #000 are not able to be correlated with a refs/bug object. in an ideal world, we would show git-bug IDs in place of these -- transparently rewriting the references.
it would be great to handle this translation as part of the import/export workflow, such that
- a reference to a
refs/bugobject is translated to the bridge object on export, and - a reference to the bridge object is translated to the
refs/bugobject on import
today, we store the bridge issue id in an operation's metadata.<name>, e.g. metadata.github-id and metadata.gitlab-id (these are internal IDs, not the "friendly" ID you see in the UI like #123). we could potentially use this at render time to work out the strings to replace, or we could expand the metadata with raw values relevant, like the "friendly" id and url.