Browse Source

Create auto-merge-pr.yaml

huangrunheng 1 năm trước cách đây
mục cha
commit
526799339f

+ 25 - 0
.github/ISSUE_TEMPLATE/auto-merge-pr.yaml

@@ -0,0 +1,25 @@
+name: Auto Create PR from dev to master
+on:
+  schedule:
+    # 每周四北京时间21点触发(UTC时间13点)
+    - cron: '0 13 * * 4'
+  workflow_dispatch: # 可选:支持手动触发
+
+jobs:
+  create-pr:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v4
+        with:
+          ref: dev 
+
+      - name: Create Pull Request
+        uses: peter-evans/create-pull-request@v5
+        with:
+          base: master  
+          head: dev     
+          title: "Weekly Auto-Merge: dev → master"
+          body: "Automated PR created by GitHub Actions."
+          labels: "automated" # 可选:添加标签
+          token: ${{ secrets.GITHUB_TOKEN }} # 使用默认权限