diff --git a/build/target-repository/.github/workflows/auto_closer.yaml b/build/target-repository/.github/workflows/auto_closer.yaml index ab9da812b7f..d98bc49948d 100644 --- a/build/target-repository/.github/workflows/auto_closer.yaml +++ b/build/target-repository/.github/workflows/auto_closer.yaml @@ -1,13 +1,14 @@ -name: Autocloser -on: [pull_request] +name: Auto Closer PR + +on: + pull_request_target: + types: [opened] + jobs: - autoclose: + run: runs-on: ubuntu-latest steps: - - name: Autoclose pull request - uses: roots/issue-closer@v1.1 + - uses: superbrothers/close-pull-request@v3 with: - repo-token: ${{secrets.GITHUB_TOKEN}} - pr-pattern: "^exact-string-will-never-match$" - pr-close-message: | - This repository content is generated by rectorphp/rector-src. Please open pull request to [rectorphp/rector-src](https://github.com/rectorphp/rector-src). + # Optional. Post a issue comment just before closing a pull request. + comment: "This repository content is generated by rectorphp/rector-src. Please open pull request to [rectorphp/rector-src](https://github.com/rectorphp/rector-src)."