Skip to content

Commit 9503db2

Browse files
committed
Build/Test Tools: Skip pull request comments for Dependabot.
Currently, Dependabot is configured to open pull requests when updates to 3rd-party GitHub Actions become available. It does a great job at this. Thank you very much, 🤖 Mr. Dependabot Roboto. Some of the automated comments for pull requests are not relevant to PRs opened by Dependabot. Despite how good of a robot it is, Dependabot will never open a Trac ticket, so it's pointless to ask for one. Also, since it’s currently only configured to watch GitHub Actions for updates, there will never be a need to test Dependabot PRs in Playground. If instructed to monitor npm dependencies in the future, this comment can be added back as those packages can directly affect the built software that is distributed. Props johnbillion. See #62221. git-svn-id: https://develop.svn.wordpress.org/trunk@59370 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7c7bcc0 commit 9503db2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/pull-request-comments.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ jobs:
123123

124124
- name: Leave a comment about testing with Playground
125125
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
126+
if: ${{ github.actor != 'dependabot' }}
126127
with:
127128
script: |
128129
const fs = require( 'fs' );
@@ -171,7 +172,7 @@ jobs:
171172
permissions:
172173
issues: write
173174
pull-requests: write
174-
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request_target' && ! github.event.pull_request.draft && github.event.pull_request.state == 'open' }}
175+
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request_target' && ! github.event.pull_request.draft && github.event.pull_request.state == 'open' && github.actor != 'dependabot' }}
175176
steps:
176177
- name: Check for Trac ticket and manage comment
177178
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1

0 commit comments

Comments
 (0)