-
Notifications
You must be signed in to change notification settings - Fork 71
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
Move issues assigned check to probot #97
Conversation
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 we split this into two PRs - Remove actions stuff in one and add the check in other?
@ankita240796, doing this will make tests fail because one of the implementations will not be tested and hence, the overall coverage will be reduced. |
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.
LGTM, just one minor nit, PTAL.
Also, can you please create an issue to update the fetching of record from spreadsheets such that CLA check for both PRs and issues use a common function? Thanks!
const assigneeHasSignedCla = await hasSignedCla(assignee.login); | ||
if (!assigneeHasSignedCla) { | ||
core.info(assignee.login + ' has not signed the CLA'); | ||
console.log(assignee.login + ' has not signed the CLA'); | ||
|
||
const commentBody = 'Hi @' + assignee.login + ', you need to sign the ' + |
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.
Add another line in the comment: I am unassigning you for now, feel free to assign yourself once you have signed the CLA.
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.
Issue created at #98 |
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.
LGTM!
Explanation
Moved issues assigned check to probot. This feature has been tested at jameesjohn/comment-on-pr#10 (comment)
Checklist