Skip to content
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

Merged
merged 2 commits into from
Jun 29, 2020

Conversation

jameesjohn
Copy link
Contributor

Explanation

Moved issues assigned check to probot. This feature has been tested at jameesjohn/comment-on-pr#10 (comment)

Checklist

  • I have successfully deployed my own instance of Oppiabot.
    • You can find instructions for doing this here.
  • I have manually tested all the changes made in this PR following the manual tests matrix.

Copy link
Contributor

@ankita240796 ankita240796 left a 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?

@jameesjohn
Copy link
Contributor Author

@ankita240796, doing this will make tests fail because one of the implementations will not be tested and hence, the overall coverage will be reduced.

Copy link
Contributor

@ankita240796 ankita240796 left a 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 ' +
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@jameesjohn
Copy link
Contributor Author

Issue created at #98

Copy link
Contributor

@ankita240796 ankita240796 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ankita240796 ankita240796 merged commit 70825ed into oppia:master Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants