-
Notifications
You must be signed in to change notification settings - Fork 58
Skip CLA check for get-convex organization members #836
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
Conversation
Co-authored-by: Nicolapps <7029582+Nicolapps@users.noreply.github.com>
Co-authored-by: Nicolapps <7029582+Nicolapps@users.noreply.github.com>
… 404 handling Co-authored-by: Nicolapps <7029582+Nicolapps@users.noreply.github.com>
scripts/check_cla.py
Outdated
| elif member_status is None: | ||
| print(f"Warning: Could not verify organization membership for {PR_AUTHOR}. Proceeding with CLA check.") | ||
| else: | ||
| print("Warning: PR_AUTHOR environment variable not set. Proceeding with CLA check.") |
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.
If PR_AUTHOR is not set, we should throw an error here.
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.
Done in fe085e7. The script now exits with an error if PR_AUTHOR is not set.
scripts/check_cla.py
Outdated
| ) | ||
| sys.exit(1) | ||
|
|
||
| print("CLA text found in PR description") |
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.
Can you please add emojis to the output? e.g. ✅, ❌
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.
Done in fe085e7. Added emojis throughout: ✅ for success, ❌ for errors, and
scripts/check_cla.py
Outdated
| member_status = is_org_member(PR_AUTHOR, GITHUB_TOKEN) | ||
|
|
||
| if member_status is True: | ||
| print(f"Skipping CLA check: {PR_AUTHOR} is a member of the {ORGANIZATION} organization (Convex employee)") |
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.
| print(f"Skipping CLA check: {PR_AUTHOR} is a member of the {ORGANIZATION} organization (Convex employee)") | |
| print(f"Skipping CLA check: {PR_AUTHOR} is a member of the {ORGANIZATION} organization (Convex employee/contractor)") |
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.
Done in fe085e7. Updated the message to include "Convex employee/contractor".
|
@copilot Address the comments |
…mployee text Co-authored-by: Nicolapps <7029582+Nicolapps@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
scripts/check_cla.py
Outdated
| except urllib.error.HTTPError as e: | ||
| if e.code == 404: | ||
| # Cannot determine membership - could be private or user is not a member | ||
| return None |
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.
@copilot Shouldn’t this be False? I don't want a warning in that case
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.
Fixed in 695ee7c. Now returns False for 404 responses (non-members) so no warning is shown. Only None (API failures like 403, network errors) triggers the warning message.
…members Co-authored-by: Nicolapps <7029582+Nicolapps@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Original prompt
scripts/check_cla.pyto ignore members of the get-convex GitHub organization #835✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.