-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate CLA checking #11783
Automate CLA checking #11783
Conversation
This code is currently stable and configured to write comments on this PR on any Need your help with the following to proceed forward: A. Google Sheets
B. Google account configuration
C. Contributors
|
Thanks @siddheshranade!
I'm curious? Why the other PR instead of this one? And I assume we want to change the trigger to an opened PR instead of
Sure, I'll sync up with you offline to get the proper values and I'll configure them in the repo settings. |
Just wanted to keep things on this PR clean, and make it easy to test as many times as we want. Will remove the hardcoded PR Id eventually so the comment appears on whatever PR triggers the action.
Yes, correct, trigger on Also - because I've replaced all API keys with dummy values, for now this workflow will fail every time someone does a |
… into cla-checking-final
Ignore my previous (now deleted) comment. We can use the Google Service Account for the API by adding its JSON file as a GitHub secret, and then writing the JSON to a temporary file that's accessed at runtime. (This is how Concierge did it as well.)
Once we have the Service Account from Chris (from this issue):
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great @siddheshranade! I'll add the secrets to Github as soon as I get the info.
@@ -0,0 +1,26 @@ | |||
name: CLA Checking | |||
on: | |||
pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just want the open
action to trigger this, right? By default, pull_request
includes other triggers as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, my bad! I think I didn't catch this because it works similar to how we want by default:
For example, if no activity types are specified, the workflow runs when a pull request is opened or reopened or when the head branch of the pull request is updated.
But good to have this only when a new PR created. Fixing in next commit.
@siddheshranade I was able to create a new service account, share the spreadsheets with that account, and set the repository secrets. Please confirm and let me know if we're good to go. |
🔴 There was an error checking the CLA! If this is your first contribution, please send in a Contributor License Agreement.
|
Since you have the Service Account access can you resolve the error
This SO answer should help if required. |
@siddheshranade This should now be enabled! |
Thanks for your patience - everything works as expected now. See: latest test comment on a new PR. Feel free to merge as you wish. |
Awesome! Thanks for adding this @siddheshranade! |
Description
Whenever a contributor opens a new PR on this repo, we want to check that they've signed an individual/corporate CLA, and automate writing a comment on the PR accordingly.
Cesium concierge performed this automation before, but we stopped using it and hence need to write a new GitHub Action on this repo to continue checking for CLAs.
Issue number and link
Issue in engineering repo.
Testing plan
Author checklist
CONTRIBUTORS.md
CHANGES.md
with a short summary of my change