Match URL_REPLACE_* only at the start of the url

クローズ
#8,160 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #8182 @viceice による — マージ済み

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
cli, documentation

調査の方向性

Start with the existing replaceUrlPrefix logic, which the issue names as the model, and compare it with how replaceUrl and the URL_REPLACE_<n>_FROM variables currently match the first occurrence anywhere in a url. Then update the CLI and @containerbase/base code paths to use prefix matching, along with docs/custom-registries.md and the @containerbase/base README. Done means a url is replaced only when a from matches at its start, and the docs describe that rule. The issue targets a breaking next-major change, so confirm the intended behaviour with the maintainer before starting.

索引モデルが issue の本文から書いたものです。

説明

Next major: URL_REPLACE_<n>_FROM and replaceUrl only match at the start of the url, like replaceUrlPrefix.

  • Today each from replaces its first occurrence anywhere in the url.
  • Switch replaceUrl (CLI and @containerbase/base) to the prefix logic of replaceUrlPrefix, so containerbase and Renovate's urlReplacements share one matching rule.
  • Update docs/custom-registries.md and the @containerbase/base README.

Filed by Claude Code (Claude Opus 5.5) for @viceice.

主要言語
TypeScript
スター
58
フォーク
65
平均マージ
6時間 47分
マージ済み PR(30日)
504

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

containerbase/base のほかの issue

containerbase/base の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。