Skip to content

Instantly share code, notes, and snippets.

@Ran-Xing
Created January 6, 2024 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ran-Xing/aadae4f92f816da685d3d3ec4d077a1a to your computer and use it in GitHub Desktop.
Save Ran-Xing/aadae4f92f816da685d3d3ec4d077a1a to your computer and use it in GitHub Desktop.
Github Action Commit to PR
name: PR 预处理
on:
push:
branches:
- 'feature/**'
permissions:
pull-requests: write
jobs:
merge-branch:
name: 提交到PR
runs-on: ubuntu-latest
steps:
- name: 获取代码
uses: actions/checkout@master
- name: 提交
uses: peter-evans/create-pull-request@v5
with:
delete-branch: true
base: master
branch: ${{ github.ref }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment