From 0796f5c6d31c317c36fa621c22fd00528a84dc9e Mon Sep 17 00:00:00 2001 From: lfathh Date: Sun, 1 Feb 2026 12:39:44 +0700 Subject: [PATCH] fix: correct typo in documentation --- README.md | 4 +++- auto-pr.sh | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100755 auto-pr.sh diff --git a/README.md b/README.md index 14104d438db1f4..016647a78d5a5f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Node.js is an open-source, cross-platform JavaScript runtime environment. -For information on using Node.js, see the [Node.js website][]. +For more information on using Node.js, see the [Node.js website](). The Node.js project uses an [open governance model](./GOVERNANCE.md). The [OpenJS Foundation][] provides support for the project. @@ -148,6 +148,8 @@ For information about the governance of the Node.js project, see +* [lfqthh](https://github.com/lfathh) - + **lfathh** <> (he/him) * [aduh95](https://github.com/aduh95) - **Antoine du Hamel** <> (he/him) * [anonrig](https://github.com/anonrig) - diff --git a/auto-pr.sh b/auto-pr.sh new file mode 100755 index 00000000000000..70e39f14fa2475 --- /dev/null +++ b/auto-pr.sh @@ -0,0 +1,52 @@ +#!/bin/bash + +# --- SKRIP OTOMATIS PULL REQUEST --- + +echo "========================================" +echo "🤖 GITHUB AUTO PULL REQUEST BOT" +echo "========================================" + +# 1. Cek apakah ada file yang berubah +if [[ -z $(git status -s) ]]; then + echo "❌ ERROR: Kamu belum mengedit file apapun!" + echo " TIPS: Edit dulu file README.md pakai 'nano README.md'" + echo " Lalu jalankan script ini lagi." + exit 1 +fi + +# 2. Input Data dari User +read -p "📂 Nama Branch Baru (cth: fix-typo-readme): " BRANCH_NAME +read -p "📝 Pesan Commit (cth: fix: add 'more' to readme): " COMMIT_MSG +read -p "heading Judul PR (cth: Docs: Add missing word): " PR_TITLE +read -p "📄 Deskripsi PR (cth: Added 'more' for better readability): " PR_BODY + +echo "----------------------------------------" +echo "⏳ Memproses..." + +# 3. Membuat Branch Baru +echo "[1/4] Membuat branch '$BRANCH_NAME'..." +git checkout -b "$BRANCH_NAME" + +# 4. Simpan Perubahan (Add & Commit) +echo "[2/4] Menyimpan perubahan..." +git add . +git commit -m "$COMMIT_MSG" + +# 5. Upload ke GitHub (Push) +echo "[3/4] Mengupload ke GitHub..." +git push --set-upstream origin "$BRANCH_NAME" + +# 6. Membuat Pull Request via GitHub CLI +echo "[4/4] Membuat Pull Request..." +gh pr create --title "$PR_TITLE" --body "$PR_BODY" --base main + +# 7. Cek Hasil +if [ $? -eq 0 ]; then + echo "----------------------------------------" + echo "✅ SUKSES! Pull Request berhasil dikirim." + echo "🔗 Cek link di atas untuk melihat PR kamu." +else + echo "----------------------------------------" + echo "❌ GAGAL. Cek pesan error di atas." +fi +