Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create workflow to copy PR template onto Dependabot PRs #2590

Merged
merged 1 commit into from
Nov 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/copy-pr-template-to-dependabot-prs.yaml
Original file line number Diff line number Diff line change
@@ -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 }}