[PR #1468] version info: detect correct remote #18567

Open
opened 2026-06-04 19:28:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/1468
Author: @Scrxtchy
Created: 11/10/2025
Status: 🔄 Open

Base: developHead: version-info


📝 Commits (1)

  • 385c534 version info: detect correct remote

📊 Changes

1 file changed (+20 additions, -6 deletions)

View changed files

📝 packages/version-info/index.js (+20 -6)

📄 Description

I found that the git information returned from the API was not attributing the correct remote when multiple remotes were present in the git config.
Instead of just taking the first result, I've now added some regex to process the file. Since there's two matches that need to be done in sequence, I've ended up having to add more validity checks to the function


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/1468 **Author:** [@Scrxtchy](https://github.com/Scrxtchy) **Created:** 11/10/2025 **Status:** 🔄 Open **Base:** `develop` ← **Head:** `version-info` --- ### 📝 Commits (1) - [`385c534`](https://github.com/imputnet/cobalt/commit/385c5344bd87720d998f70ff6819a15deb4041e2) version info: detect correct remote ### 📊 Changes **1 file changed** (+20 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/version-info/index.js` (+20 -6) </details> ### 📄 Description I found that the git information returned from the API was not attributing the correct remote when multiple remotes were present in the git config. Instead of just taking the first result, I've now added some regex to process the file. Since there's two matches that need to be done in sequence, I've ended up having to add more validity checks to the function --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-04 19:28:33 -05:00
Sign in to join this conversation.