Skip to content

Commit

Permalink
Setup auto-comment on dependabot PRs (#1738)
Browse files Browse the repository at this point in the history
* chore: delete label-actions.yml

* chore: delete process-label-actions.yml

* chore: create new workflow for auto-comment on dependabot PR thread
  • Loading branch information
PeculiarE authored May 29, 2022
1 parent 1b838f5 commit b66b754
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
3 changes: 0 additions & 3 deletions .github/label-actions.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/dependabot-pr-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Dependabot PR Auto-Comment task

on:
pull_request_target:
types:
- opened

jobs:
auto-comment:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Automatically Comment on Dependabot PR
uses: actions/github-script@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.createComment({
issue_number: ${{ github.event.number }},
owner: context.repo.owner,
repo: context.repo.repo,
body: "This is an automated pull request by @dependabot, a service we use to keep libraries up to date in our projects. Read this post to learn how to help us understand if it's ready to be merged (there are lots of considerations to balance!): https://bit.ly/3GphOhV"
})
17 changes: 0 additions & 17 deletions .github/workflows/process-label-actions.yml

This file was deleted.

0 comments on commit b66b754

Please sign in to comment.