Auto-comment on ECA check failure with instructions for contributors
Currently, the ECA GitHub App fails the status check on pull requests when one or more commit authors have not signed the Eclipse Contributor Agreement (ECA) or have not linked their GitHub account. However, this failure is often unclear to contributors, especially those who are new and making first-time contributions.
To improve the contributor experience and reduce the burden on project maintainers, we propose that the ECA check GitHub App automatically post a comment on the pull request when it detects a failure, clearly explaining the issue and how to resolve it.
Proposed Behavior:
When the ECA check fails on a pull request, and one or more commit authors have not signed the ECA or linked their GitHub account, the GitHub App should automatically post a comment similar to the following:
Hi
@user1 @user2
— thank you for your contribution!The Eclipse Contributor Agreement (ECA) check has failed for this pull request due to one of the following reasons:
- Your GitHub account is not linked to an Eclipse Foundation account or
- Your Eclipse account does not have a valid ECA on file
To resolve this, please:
- Sign in or create an Eclipse Foundation account: https://accounts.eclipse.org/user/eca
- Ensure your GitHub username is linked to your Eclipse account
- Complete and submit the ECA form
Once done, push a new commit (or rebase) to re-trigger the ECA validation.
If you believe you’ve already completed these steps, please double-check your account settings or report an issues to Eclipse Foundation Helpdesk.
Thanks again for your contribution!