chore: sync templates from emdash v0.17.1 #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Close External PRs | |
| on: | |
| pull_request_target: | |
| types: [opened] | |
| jobs: | |
| close: | |
| if: >- | |
| github.actor != 'emdashbot[bot]' && | |
| github.event.pull_request.author_association != 'OWNER' && | |
| github.event.pull_request.author_association != 'MEMBER' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Close and comment | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| run: | | |
| gh pr comment "$PR_URL" --body "Thanks for the contribution! This repo is auto-synced from [emdash-cms/emdash](https://github.com/emdash-cms/emdash) — please open your PR there instead (template source is in the \`templates/\` directory). | |
| This PR will be closed automatically." | |
| gh pr close "$PR_URL" |