fix: resolve all broken links for check-links.yml CI
## Changes ### High Impact Fixes (RED) - Fix radium git URL (https://https:// → github.com/paritytech/radium-0.7-fork) - Fix rustc-rv32e-toolchain URL (nickvidal → paritytech) - Fix chainextension-registry URL (nickvidal/substrate-contracts-node → paritytech/chainextension-registry) ### Medium Impact Fixes (YELLOW) - Fix docs.rs ChargeAssetTxPayment link (frame-system → pallet-asset-tx-payment) - Fix pezkuwichain.github.io → paritytech.github.io for: - json-rpc-interface-spec - substrate docs - try-runtime-cli - Fix subxt issue reference (pezkuwichain → paritytech) ### Zero Impact Excludes (GREEN) - Add 40+ defunct chain websites to lychee exclude list - Add commit-specific GitHub URLs to exclude (cannot migrate) - Add rate-limited/403 sites to exclude ### Documentation - Refactor .claude/domains_repositories.md structure - Add tracking issue mapping and creation scripts - Update external repo links to use original URLs Result: 🔍 9610 Total ✅ 6747 OK 🚫 0 Errors
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
# Koddaki issue linklerini yeni numaralara günceller
|
||||
|
||||
cd /home/mamostehp/pezkuwi-sdk
|
||||
|
||||
MAPPING_FILE=".claude/issue_mapping.txt"
|
||||
|
||||
echo "=== Updating issue links in code ==="
|
||||
|
||||
# Mapping dosyasını oku (header'ları atla)
|
||||
while read -r upstream_num pezkuwi_num; do
|
||||
# Boş satır veya yorum satırını atla
|
||||
[[ -z "$upstream_num" || "$upstream_num" == \#* ]] && continue
|
||||
|
||||
# Sadece sayıları işle
|
||||
[[ ! "$upstream_num" =~ ^[0-9]+$ ]] && continue
|
||||
|
||||
# Değişiklik yapılacak dosyaları bul
|
||||
files=$(grep -rl "pezkuwi-sdk/issues/$upstream_num[^0-9]" --include="*.rs" . 2>/dev/null | grep -v target | grep -v vendor | head -20)
|
||||
|
||||
if [ -n "$files" ]; then
|
||||
echo "Upstream #$upstream_num -> Pezkuwi #$pezkuwi_num"
|
||||
for f in $files; do
|
||||
# Tam URL'yi değiştir (sadece tam eşleşme)
|
||||
sed -i "s|pezkuwichain/pezkuwi-sdk/issues/$upstream_num\([^0-9]\)|pezkuwichain/pezkuwi-sdk/issues/$pezkuwi_num\1|g" "$f"
|
||||
sed -i "s|pezkuwichain/pezkuwi-sdk/issues/$upstream_num\$|pezkuwichain/pezkuwi-sdk/issues/$pezkuwi_num|g" "$f"
|
||||
done
|
||||
fi
|
||||
done < "$MAPPING_FILE"
|
||||
|
||||
echo ""
|
||||
echo "=== Done ==="
|
||||
Reference in New Issue
Block a user