From e5410ef9aae2a7b030d5cd9fc411cb8284d94b9c Mon Sep 17 00:00:00 2001 From: James Robinson Date: Wed, 2 Nov 2022 16:35:33 +0000 Subject: [PATCH] Create workflow to copy PR template onto Dependabot PRs --- .../copy-pr-template-to-dependabot-prs.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/copy-pr-template-to-dependabot-prs.yaml diff --git a/.github/workflows/copy-pr-template-to-dependabot-prs.yaml b/.github/workflows/copy-pr-template-to-dependabot-prs.yaml new file mode 100644 index 000000000..83f62d311 --- /dev/null +++ b/.github/workflows/copy-pr-template-to-dependabot-prs.yaml @@ -0,0 +1,22 @@ +name: Copy PR template to Dependabot PRs +on: + pull_request_target: + types: [opened] +jobs: + copy_pr_template: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + steps: + - uses: actions/checkout@v3 + + - name: Fetch PR template + id: fetch-pr-template + uses: juliangruber/read-file-action@v1 + with: + path: .github/pull_request_template.md + + - name: Create comment + uses: peter-evans/create-or-update-comment@v2 + with: + issue-number: ${{ github.event.number }} + body: ${{ steps.fetch-pr-template.outputs.content }}