Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure CLA check gets skipped for Argo (#520)
The automatic CLA check isn't working as desired in some cases -- the check is being enforced even though Argo is the PR author. This is happening because the check currently checks if `github.actor` matches the Argo bot username, but `github.actor` is actually _the user who last caused CI to be triggered_, whether by commenting on the PR, pushing changes, etc. [Here's a good example](https://github.com/Shopify/product-taxonomy/actions/runs/12656103875?pr=510) showing the check being enforced for an Argo PR because the triggering user was someone else. The fix here is to directly check the PR author, instead of the event actor. This is done slightly differently depending on the event type: * For a `pull_request_target` event: `github.event.pull_request.user.login` * For an `issue_comment` event: `github.event.issue.user.login` https://github.com/orgs/community/discussions/25502 provides more context.
- Loading branch information