Fix Welcome New Contributors workflow: replace broken first-interaction action#234
Merged
swissspidy merged 5 commits intomainfrom Apr 10, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/wp-cli/.github/sessions/4e6e4a09-30de-4345-8800-b96b0c99693e Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix newcomer check in Welcome New Contributors workflow
Fix Welcome New Contributors workflow: replace broken first-interaction action
Apr 9, 2026
swissspidy
reviewed
Apr 10, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the reusable “Welcome New Contributors” GitHub Actions workflow to avoid the actions/first-interaction bug that posts welcome comments for returning contributors, by replacing it with an explicit first-PR check and a conditional comment step.
Changes:
- Remove
actions/first-interactionusage. - Add a GitHub Search API check (via
actions/github-script) to determine whether the PR author has prior PRs in the repo. - Post the welcome comment only when the author is not a bot and the first-PR check passes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
actions/first-interactionhas a known bug that causes it to always post the welcome comment, regardless of whether the author is a returning contributor.Changes
actions/first-interactionentirelyCheck if first PRstep usingactions/github-scriptthat queries the GitHub Search API for the author's prior PRs in the repo — returnstrueonly whentotal_count <= 1Welcome New Contributorstep that posts the comment only when the author is not a bot and the first-PR check passesThe
per_page: 2cap keeps the search query cheap;total_count <= 1handles the case where the search index hasn't yet indexed the current PR.