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:
2025-12-23 07:58:20 +03:00
parent 422f112970
commit 5a184fd7dc
168 changed files with 743 additions and 264 deletions
+107
View File
@@ -0,0 +1,107 @@
#!/bin/bash
# Tüm eksik upstream tracking issue'larını oluşturur
set -e
cd /home/mamostehp/pezkuwi-sdk
REPO="pezkuwichain/pezkuwi-sdk"
LABEL="upstream-tracking"
TODAY=$(date +%Y-%m-%d)
NEXT_CHECK=$(date -d '+1 month' +%Y-%m-%d 2>/dev/null || date -v+1m +%Y-%m-%d 2>/dev/null || echo "2026-01-23")
MAPPING_FILE=".claude/issue_mapping.txt"
LOG_FILE=".claude/issue_creation.log"
# Eksik issue numaraları
MISSING_ISSUES=(8 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 38 39 40 41 43 44 45 47 48 49 50 51 53 55 57 60 74 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190)
echo "========================================" | tee -a "$LOG_FILE"
echo "Upstream Tracking Issues Creator" | tee -a "$LOG_FILE"
echo "Started: $(date)" | tee -a "$LOG_FILE"
echo "Total to create: ${#MISSING_ISSUES[@]}" | tee -a "$LOG_FILE"
echo "========================================" | tee -a "$LOG_FILE"
create_issue() {
local upstream_num=$1
# Zaten oluşturulmuş mu kontrol et
if grep -q "^$upstream_num " "$MAPPING_FILE" 2>/dev/null; then
echo " SKIP: #$upstream_num already exists" | tee -a "$LOG_FILE"
return 0
fi
local body="## Upstream Reference Tracking
**Upstream URL:** https://github.com/paritytech/polkadot-sdk/issues/$upstream_num
**Type:** Issue
---
### Status Tracking:
- [x] Pending - Upstream not yet resolved
- [ ] Resolved - Fix merged upstream
- [ ] Evaluated - Assessed if needed for PezkuwiChain
- [ ] Applied - Fix applied to our chain
- [ ] Closed - Upstream issue closed
- [ ] Skipped - Not relevant for us
**Last Check:** $TODAY
**Next Check:** $NEXT_CHECK
---
### Notes:
Automatically created tracking issue for upstream Polkadot SDK reference.
This issue is tracked by our weekly bot that monitors upstream changes."
result=$(gh issue create \
--repo "$REPO" \
--title "[Upstream] Track Polkadot SDK #$upstream_num" \
--body "$body" \
--label "$LABEL" 2>&1)
new_num=$(echo "$result" | grep -oE '/issues/[0-9]+' | grep -oE '[0-9]+')
if [ -n "$new_num" ]; then
echo "$upstream_num $new_num" >> "$MAPPING_FILE"
echo " OK: Created #$new_num for upstream #$upstream_num" | tee -a "$LOG_FILE"
return 0
else
echo " FAIL: upstream #$upstream_num - $result" | tee -a "$LOG_FILE"
return 1
fi
}
success=0
failed=0
skipped=0
for upstream_num in "${MISSING_ISSUES[@]}"; do
echo "Processing upstream #$upstream_num..."
if grep -q "^$upstream_num " "$MAPPING_FILE" 2>/dev/null; then
((skipped++))
echo " SKIP: Already tracked"
continue
fi
if create_issue "$upstream_num"; then
((success++))
else
((failed++))
fi
# Rate limit için bekleme
sleep 0.5
done
echo "" | tee -a "$LOG_FILE"
echo "========================================" | tee -a "$LOG_FILE"
echo "COMPLETED" | tee -a "$LOG_FILE"
echo " Success: $success" | tee -a "$LOG_FILE"
echo " Failed: $failed" | tee -a "$LOG_FILE"
echo " Skipped: $skipped" | tee -a "$LOG_FILE"
echo " Mapping file: $MAPPING_FILE" | tee -a "$LOG_FILE"
echo "Finished: $(date)" | tee -a "$LOG_FILE"
echo "========================================" | tee -a "$LOG_FILE"
+55
View File
@@ -0,0 +1,55 @@
#!/bin/bash
cd /home/mamostehp/pezkuwi-sdk
MAPPING_FILE=".claude/issue_mapping.txt"
create_issue() {
local i=$1
echo "Creating tracking issue for upstream #$i..."
result=$(gh issue create \
--repo pezkuwichain/pezkuwi-sdk \
--title "[Upstream] Track Polkadot SDK #$i" \
--body "## Upstream Reference Tracking
**Upstream URL:** https://github.com/paritytech/polkadot-sdk/issues/$i
**Type:** Issue
---
### Status Tracking:
- [x] Pending - Upstream not yet resolved
- [ ] Resolved - Fix merged upstream
- [ ] Evaluated - Assessed if needed for PezkuwiChain
- [ ] Applied - Fix applied to our chain
- [ ] Closed - Upstream issue closed
- [ ] Skipped - Not relevant for us
**Last Check:** 2025-12-23
**Next Check:** 2026-01-23
---
### Notes:
Automatically created tracking issue for upstream Polkadot SDK reference." \
--label "upstream-tracking" 2>&1)
new_num=$(echo "$result" | grep -oE '/issues/[0-9]+' | grep -oE '[0-9]+')
if [ -n "$new_num" ]; then
echo "$i $new_num" >> "$MAPPING_FILE"
echo " Created #$new_num for upstream #$i"
else
echo " Failed: $result"
fi
sleep 1
}
# Create remaining test issues
for i in 3 4 5 7; do
create_issue $i
done
echo ""
echo "Mapping file contents:"
cat "$MAPPING_FILE"
+196
View File
@@ -0,0 +1,196 @@
#!/bin/bash
# Upstream Tracking Issues Creator
# Polkadot SDK issue'larını takip eden issue'lar oluşturur
set -e
REPO="pezkuwichain/pezkuwi-sdk"
LABEL="upstream-tracking"
TODAY=$(date +%Y-%m-%d)
NEXT_CHECK=$(date -d '+1 month' +%Y-%m-%d 2>/dev/null || date -v+1m +%Y-%m-%d)
# Mapping dosyası - oluşturulan issue'ları kaydeder
MAPPING_FILE="/home/mamostehp/pezkuwi-sdk/.claude/issue_mapping.txt"
# Tüm upstream issue numaraları
ALL_ISSUES=(2 3 4 5 7 8 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 38 39 40 41 43 44 45 47 48 49 50 51 53 55 57 60 74 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190)
# Test modu - sadece ilk 5 issue
TEST_ISSUES=(2 3 4 5 7)
create_issue() {
local upstream_num=$1
echo "Creating tracking issue for Polkadot SDK #$upstream_num..."
# Issue body
local body="## Upstream Reference Tracking
**Upstream URL:** https://github.com/paritytech/polkadot-sdk/issues/$upstream_num
**Type:** Issue
---
### Status Tracking:
- [x] Pending - Upstream not yet resolved
- [ ] Resolved - Fix merged upstream
- [ ] Evaluated - Assessed if needed for PezkuwiChain
- [ ] Applied - Fix applied to our chain
- [ ] Closed - Upstream issue closed
- [ ] Skipped - Not relevant for us
**Last Check:** $TODAY
**Next Check:** $NEXT_CHECK
---
### Notes:
Automatically created tracking issue for upstream Polkadot SDK reference.
This issue is tracked by our weekly bot that monitors upstream changes."
# Issue oluştur ve numarasını al
local result=$(gh issue create \
--repo "$REPO" \
--title "[Upstream] Track Polkadot SDK #$upstream_num" \
--body "$body" \
--label "$LABEL" 2>&1)
# Issue URL'den numarayı çıkar
local new_issue_num=$(echo "$result" | grep -oE '/issues/[0-9]+' | grep -oE '[0-9]+')
if [ -n "$new_issue_num" ]; then
echo "$upstream_num $new_issue_num" >> "$MAPPING_FILE"
echo " ✓ Created issue #$new_issue_num for upstream #$upstream_num"
return 0
else
echo " ✗ Failed to create issue for upstream #$upstream_num"
echo " Error: $result"
return 1
fi
}
ensure_label_exists() {
echo "Checking if label '$LABEL' exists..."
if ! gh label list --repo "$REPO" | grep -q "$LABEL"; then
echo "Creating label '$LABEL'..."
gh label create "$LABEL" \
--repo "$REPO" \
--description "Issues tracking upstream Polkadot SDK changes" \
--color "0366d6"
echo " ✓ Label created"
else
echo " ✓ Label already exists"
fi
}
test_mode() {
echo "========================================"
echo "TEST MODE - Creating 5 tracking issues"
echo "========================================"
echo ""
ensure_label_exists
# Mapping dosyasını başlat
echo "# Upstream Issue -> Pezkuwi Issue Mapping" > "$MAPPING_FILE"
echo "# Format: UPSTREAM_NUM PEZKUWI_NUM" >> "$MAPPING_FILE"
echo "# Created: $TODAY" >> "$MAPPING_FILE"
echo "" >> "$MAPPING_FILE"
local success=0
local failed=0
for issue_num in "${TEST_ISSUES[@]}"; do
if create_issue "$issue_num"; then
((success++))
else
((failed++))
fi
# Rate limit için kısa bekleme
sleep 1
done
echo ""
echo "========================================"
echo "TEST COMPLETE"
echo " Success: $success"
echo " Failed: $failed"
echo " Mapping file: $MAPPING_FILE"
echo "========================================"
echo ""
echo "Mapping içeriği:"
cat "$MAPPING_FILE"
}
full_mode() {
echo "========================================"
echo "FULL MODE - Creating ALL tracking issues"
echo "Total: ${#ALL_ISSUES[@]} issues"
echo "========================================"
echo ""
ensure_label_exists
# Mevcut mapping'i kontrol et
if [ -f "$MAPPING_FILE" ]; then
echo "Existing mapping file found. Skipping already created issues."
else
echo "# Upstream Issue -> Pezkuwi Issue Mapping" > "$MAPPING_FILE"
echo "# Format: UPSTREAM_NUM PEZKUWI_NUM" >> "$MAPPING_FILE"
echo "# Created: $TODAY" >> "$MAPPING_FILE"
echo "" >> "$MAPPING_FILE"
fi
local success=0
local failed=0
local skipped=0
for issue_num in "${ALL_ISSUES[@]}"; do
# Zaten oluşturulmuş mu kontrol et
if grep -q "^$issue_num " "$MAPPING_FILE" 2>/dev/null; then
echo "Skipping upstream #$issue_num (already created)"
((skipped++))
continue
fi
if create_issue "$issue_num"; then
((success++))
else
((failed++))
fi
# Rate limit için kısa bekleme
sleep 1
done
echo ""
echo "========================================"
echo "FULL MODE COMPLETE"
echo " Success: $success"
echo " Failed: $failed"
echo " Skipped: $skipped"
echo " Total processed: $((success + failed + skipped))"
echo " Mapping file: $MAPPING_FILE"
echo "========================================"
}
# Ana menu
case "${1:-}" in
test)
test_mode
;;
full)
full_mode
;;
*)
echo "Usage: $0 {test|full}"
echo ""
echo " test - Create 5 test issues to verify the script works"
echo " full - Create all 143 tracking issues"
echo ""
echo "Prerequisites:"
echo " - GitHub CLI (gh) must be installed and authenticated"
echo " - Run 'gh auth status' to verify"
;;
esac
+42
View File
@@ -0,0 +1,42 @@
#!/bin/bash
cd /home/mamostehp/pezkuwi-sdk
# Koddaki tüm upstream issue numaraları
CODE_ISSUES=$(grep -rho "github.com/pezkuwichain/pezkuwi-sdk/issues/[0-9]*" --include="*.rs" 2>/dev/null | \
grep -v target | grep -v vendor | \
sed 's|github.com/pezkuwichain/pezkuwi-sdk/issues/||' | \
sort -n | uniq)
# Zaten tracking issue olanlar (mapping dosyasından)
TRACKED=""
if [ -f ".claude/issue_mapping.txt" ]; then
TRACKED=$(grep -v "^#" .claude/issue_mapping.txt | awk '{print $1}' | tr '\n' ' ')
fi
echo "=== DURUM RAPORU ==="
echo ""
echo "Koddaki upstream referansları:"
echo "$CODE_ISSUES" | wc -w
echo ""
echo "Zaten tracking issue olanlar:"
echo "$TRACKED"
echo ""
echo "=== OLUŞTURULMASI GEREKEN ISSUE'LAR ==="
MISSING=""
for i in $CODE_ISSUES; do
found=0
for t in $TRACKED; do
if [ "$i" = "$t" ]; then
found=1
break
fi
done
if [ $found -eq 0 ]; then
MISSING="$MISSING $i"
fi
done
echo "$MISSING" | tr ' ' '\n' | grep -v '^$' | sort -n
echo ""
echo "Toplam eksik: $(echo $MISSING | wc -w)"
+32
View File
@@ -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 ==="