[GHA] Alternative for close PR auto (#84)

* [GHA] Alternative for close PR

* title action
This commit is contained in:
Abdul Malik Ikhsan 2021-05-21 01:17:59 +07:00 committed by GitHub
parent b0a75c7a1b
commit ddd054ffff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 9 deletions

View File

@ -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)."