Make WordPress Core

Changeset 59370


Ignore:
Timestamp:
11/07/2024 04:21:42 PM (3 months ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/pull-request-comments.yml

    r59354 r59370  
    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: |
     
    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
Note: See TracChangeset for help on using the changeset viewer.