Skip to content

Commit

Permalink
Build/Test Tools: Skip pull request comments for Dependabot.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
desrosj committed Nov 7, 2024
1 parent 7c7bcc0 commit 9503db2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pull-request-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ jobs:

- name: Leave a comment about testing with Playground
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
if: ${{ github.actor != 'dependabot' }}
with:
script: |
const fs = require( 'fs' );
Expand Down Expand Up @@ -171,7 +172,7 @@ jobs:
permissions:
issues: write
pull-requests: write
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name == 'pull_request_target' && ! github.event.pull_request.draft && github.event.pull_request.state == 'open' }}
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' }}
steps:
- name: Check for Trac ticket and manage comment
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
Expand Down

0 comments on commit 9503db2

Please sign in to comment.