catalog-model: rename parse/stringifyLocationRef

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-02-11 17:11:10 +01:00
parent d3292ab1ba
commit 216725b434
17 changed files with 139 additions and 73 deletions
+2 -2
View File
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { parseLocationReference } from '@backstage/catalog-model';
import { parseLocationRef } from '@backstage/catalog-model';
import { InputError } from '@backstage/errors';
import { ScmIntegrationRegistry } from '@backstage/integration';
import { graphql } from '@octokit/graphql';
@@ -27,7 +27,7 @@ const getBaseUrl = (
return 'https://api.github.com';
}
const location = parseLocationReference(host);
const location = parseLocationRef(host);
if (location.type !== 'github' && location.type !== 'url') {
return 'https://api.github.com';
}