diff --git a/CHANGELOG.md b/CHANGELOG.md index 3481694..0c559e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ Biçim [Keep a Changelog](https://keepachangelog.com/) esas alınmıştır. ## [Unreleased] +### Düzeltildi +- `scripts/release-publish.sh`: indeks adımı `index-publish.sh` çağrısına `--yes` geçirir (betiğin kendi y/N sorusu zaten yayın onayıdır; indeks `sign` ikinci onayı etkileşimsiz pencerede "iptal edildi" ile düşüyordu, v0.1.2 yayınında yaşandı). `--dry-run` planı ve hata mesajındaki yeniden çalıştırma komutu da `--yes` gösterir. Paket içeriği değişmedi (sürüm gerektirmez). Gerçek `index-publish.sh` ile DENENMEDİ (atrap betik, mutasyon testiyle doğrulandı). + ## [0.1.2] - 2026-11-07 ### Eklendi diff --git a/scripts/release-publish.sh b/scripts/release-publish.sh index 4fc3212..341f6a5 100755 --- a/scripts/release-publish.sh +++ b/scripts/release-publish.sh @@ -73,7 +73,7 @@ echo " 2) scripts/release.sh (paket + imza + kendi doğrulaması)" echo " 3) gh release create $TAG $ARCHIVE $ARCHIVE.sig --title $TAG --notes-file " echo " 4) yüklenen dosyaların SHA-256 özetini yerel dosyalarla karşılaştır" echo " 5) components.lock taban bilgisi için SHA-256 ve imzalayıcı satırını yazdır (bilgi; sshpocket reposuna DOKUNULMAZ)" -echo " 6) indeks: $INDEX_PUBLISH $ID $VERSION --archive $ARCHIVE --sig $ARCHIVE.sig (indeks deposunda yerel commit; push sizde)" +echo " 6) indeks: $INDEX_PUBLISH $ID $VERSION --archive $ARCHIVE --sig $ARCHIVE.sig --yes (indeks deposunda yerel commit; push sizde)" if [ "$DRY" = 1 ]; then echo "[dry-run] hiçbir şey yapılmadı."; exit 0; fi if [ "$YES" = 0 ]; then read -r -p "Devam edilsin mi? (etiket itilir, Release yayımlanır) [y/N] " ans /dev/null); then bad "dry-run etiket OLUSTURDU"; else ok "dry-run etiket olusturmadi"; fi if git --git-dir="$TMP/o.git" rev-parse -q --verify "refs/tags/v$V" >/dev/null; then bad "dry-run etiketi ITTI"; else ok "dry-run etiketi itmedi"; fi @@ -104,7 +105,7 @@ if [ -f "$FAKE_INDEX_LOG" ]; then bad "dry-run indeks betigini CALISTIRDI"; else rm -f "$FAKE_INDEX_LOG"; fresh; out=$(pub --yes); rc=$? idxcall=$(cat "$FAKE_INDEX_LOG" 2>/dev/null) expect_eq "indeks adimli tam kosu cikis 0" "0" "$rc" -expect_contains " indeks: --archive --sig" "$idxcall" "index-publish utility $V sahip/depo --archive dist/utility-$V.tar.gz --sig dist/utility-$V.tar.gz.sig" +expect_contains " indeks: --archive --sig" "$idxcall" "index-publish utility $V sahip/depo --archive dist/utility-$V.tar.gz --sig dist/utility-$V.tar.gz.sig --yes" expect_contains " indeks guncellendi mesaji" "$out" "İndeks güncellendi" expect_not_contains " lock-component yonergesi yok" "$out" "SİZ güncelleyin" if printf '%s' "$out" | awk '/ATRAP-INDEKS-CAGRILDI/ {i=NR} /✅/ {s=NR} END {exit !(s && i && i < s)}'; then ok "indeks adimi son ✅ satirindan once"; else bad "indeks adimi son ✅ satirindan SONRA ya da yok"; fi @@ -114,6 +115,7 @@ if git --git-dir="$TMP/o.git" rev-parse -q --verify "refs/tags/v$V" >/dev/null; fresh; export FAKE_INDEX_FAIL=1; out=$(pub --yes); rc=$?; unset FAKE_INDEX_FAIL if [ "$rc" != "0" ]; then ok "indeks hatasi cikis kodu 0 degil"; else bad "indeks hatasi yutuldu"; fi expect_contains " hata: Release gecerli, betik tek basina yeniden calistirilabilir" "$out" "tek başına yeniden çalıştırılabilir" +expect_contains " hata mesajindaki yeniden calistirma komutu --yes icerir" "$out" "--sig dist/utility-$V.tar.gz.sig --yes" if [ -f "$TMP/gh.create" ]; then ok "indeks hatasinda Release zaten acilmisti"; else bad "Release yok"; fi echo "-- ozet UYUSMAZSA durur" fresh; export FAKE_DIGEST=kotu; out=$(pub --yes); rc=$?; unset FAKE_DIGEST