diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000..3eb3c5b --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,18 @@ +{ + "permissions": { + "allow": [ + "WebFetch(domain:opencamp.cn)", + "WebFetch(domain:github.com)", + "WebFetch(domain:mofa.ai)", + "Bash(git --version)", + "Bash(git checkout:*)", + "Bash(git reset:*)", + "Bash(git push:*)", + "Bash(gh pr create:*)", + "Bash(gh workflow run:*)", + "Bash(gh pr list:*)" + ], + "deny": [], + "ask": [] + } +} diff --git a/test.bat b/test.bat new file mode 100644 index 0000000..9765c9c --- /dev/null +++ b/test.bat @@ -0,0 +1,32 @@ +@echo off +setlocal enabledelayedexpansion + +cd /d C:\Users\29084\Desktop\github101 + +set "counter_file=counter.txt" +set "output_file=test.txt" + +if exist %counter_file% ( + set /p n=<%counter_file% +) else ( + set n=1 +) + +git checkout main +git pull origin main + +set "branch=feat/test-%n%" +git checkout -b %branch% + +echo test%n%>>%output_file% + +git add . +git commit -m "feat: add test%n%" + +git push -u origin %branch% +gh pr create --base main --head %branch% --title "feat: add test%n%" --body "Auto PR %n%" + +set /a next=n+1 +echo %next%>%counter_file% + +echo Done: PR created for test%n% diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..a5bce3f --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +test1