Skip to content

鹿实Tamiko UID: 3546389449542352 #7602

鹿实Tamiko UID: 3546389449542352

鹿实Tamiko UID: 3546389449542352 #7602

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: [email protected]
# GIT_COMMITTER_NAME: vdb-bot
# GIT_COMMITTER_EMAIL: [email protected]
# - run: git pull origin master
# - run: git push origin master