Skip to content

清橘儿 UID: 3493298528324278 #7492

清橘儿 UID: 3493298528324278

清橘儿 UID: 3493298528324278 #7492

name: delete branch on close pr
on:
pull_request:
types: [closed]
jobs:
delete-branch:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == false
steps:
- name: delete branch
uses: SvanBoxel/delete-merged-branch@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
delete_closed_pr: true
# - uses: actions/checkout@v3
# with:
# token: ${{ secrets.bottoken }}
# ref: master
# - name: Use Node.js 18
# uses: actions/setup-node@v3
# with:
# node-version: '18'
# - run: git pull origin master
# - name: Delete Change
# run: node script/deleteChange.mjs
# env:
# PR_HEAD_LABEL: ${{ github.event.pull_request.head.label }}
# - run: git add vtbs-review
# - run: git commit -m "Delete Change"
# env:
# GIT_AUTHOR_NAME: vdb-bot
# GIT_AUTHOR_EMAIL: tend.runnier0q@icloud.com
# GIT_COMMITTER_NAME: vdb-bot
# GIT_COMMITTER_EMAIL: tend.runnier0q@icloud.com
# - run: git pull origin master
# - run: git push origin master