Files
2026-07-13 13:22:34 +08:00

36 lines
845 B
YAML

name: Closing PR
on:
pull_request_target:
types:
- opened
- edited
defaults:
run:
shell: bash
permissions: {}
jobs:
closing-pr:
runs-on: ubuntu-slim
timeout-minutes: 10
permissions:
pull-requests: read # closing-pr.js reads the PR body
issues: write # closing-pr.js labels issues
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
sparse-checkout: |
.github
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
retries: 3
script: |
const script = require(
`${process.env.GITHUB_WORKSPACE}/.github/workflows/closing-pr.js`
);
await script({ context, github });