Skip to content

chore: sync templates from emdash v0.17.1 #19

chore: sync templates from emdash v0.17.1

chore: sync templates from emdash v0.17.1 #19

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"