Skip to content

ci: fix first-time contributor welcome check#6929

Open
Yashagarwal9798 wants to merge 2 commits into
pipe-cd:masterfrom
Yashagarwal9798:fix-first-time-contributor-welcome
Open

ci: fix first-time contributor welcome check#6929
Yashagarwal9798 wants to merge 2 commits into
pipe-cd:masterfrom
Yashagarwal9798:fix-first-time-contributor-welcome

Conversation

@Yashagarwal9798

Copy link
Copy Markdown
Contributor

What this PR does:

Fixes the first-time contributor welcome workflow to correctly check pull requests opened by the PR author.
It now uses GitHub search with author:<username> instead of the unsupported creator parameter.

Why we need it:

The old check could look at unrelated recent pull requests and incorrectly skip the welcome comment.
This ensures first-time contributors get the welcome message on their first pull request.

Which issue(s) this PR fixes:

Fixes #6918

Does this PR introduce a user-facing change?:
No.

  • How are users affected by this change:
    Users are not affected. This only changes a GitHub Actions workflow.
  • Is this breaking change:
    No.
  • How to migrate (if breaking change):
    No migration is needed.

Signed-off-by: Yashagarwal9798 <yashagarwal9798@gmail.com>
@Yashagarwal9798

Copy link
Copy Markdown
Contributor Author

@Warashi @Ayushmore1214 @rahulshendre Could you please review this PR?

@Ayushmore1214

Copy link
Copy Markdown
Member

@Yashagarwal9798 could you run this once locally and drop a screenshot here ?

@Yashagarwal9798

Copy link
Copy Markdown
Contributor Author

@Ayushmore1214 I tested it in my fork by opening a test PR from test-first-time-welcome into fix-first-time-contributor-welcome.

Since the fixed workflow was on the base branch, the pull_request_target workflow ran and posted the first-time contributor welcome comment successfully.

image image

@Ayushmore1214 Ayushmore1214 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: fix first-time contributor welcome check

2 participants