-
Notifications
You must be signed in to change notification settings - Fork 256
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
3 bugfixes and 2 features #297
Conversation
token: args.token | ||
} | ||
}; | ||
ClaApi.validatePullRequests(req, () => { }); |
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.
@KharitonOff Do you specifically just want to check all the repo pull requests instead of org pull requests or shared CLA orgs/repos pull reqeusts?
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.
@MichaelTsengLZ actually yes, my intention was to reduce the number of calls, because this function is called every time a user signs a CLA. I assumed, that in 90% of cases the user has only one open PR in the certain repo, where he/she comes from to sign the CLA. In other cases I would take in count that the repo/org owner has to trigger "Recheck PRs" button manualy.
But since we use user-PR cache it should be ok, to check all PRs of the linked item as a fallback.
…getCombinedStatus' to 'getCombinedStatusForRef'
…equest is not found. We should validate shared CLA org/repo or org.
…l request signed or not instead of all the committers.
…org. linkedItem.org will throw error since linkedItem is null. What's more, we should delete those stored pull requests.
93229fb
to
df9502c
Compare
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.
👍
Bugfixes:
New GitHub node package changes getting combined status API from 'getCombinedStatus' to 'getCombinedStatusForRef
When the input is undefined or null, hasNextPage() API of GitHub node package will throw an error. Then admin homepage will not show anything.
For those contributors don't have cached pull request, we should validate not only the repo pull request but also validate to shared gist repos/orgs accordingly.
Small features:
Add config settings to allow only need the submitter to sign instead of all the committers of a pull request.
When user change name, we should also identify their previous signature.