Make WordPress Core

Changeset 59441


Ignore:
Timestamp:
11/20/2024 06:08:27 PM (8 months ago)
Author:
desrosj
Message:

Build/Test Tools: Correctly check for Dependabot.

This updates the conditions added in [59370] to skip unnecessary pull request comments when Dependabot is the opening contributor to check for the correct github.actor value.

Follow up to [59380].

See #62221.

File:
1 edited

Legend:

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

    r59370 r59441  
    124124      - name: Leave a comment about testing with Playground
    125125        uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
    126         if: ${{ github.actor != 'dependabot' }}
     126        if: ${{ github.actor != 'dependabot[bot]' }}
    127127        with:
    128128          script: |
     
    173173      issues: write
    174174      pull-requests: write
    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' }}
     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[bot]' }}
    176176    steps:
    177177      - name: Check for Trac ticket and manage comment
Note: See TracChangeset for help on using the changeset viewer.