Skip to content

Conversation

@tarao
Copy link
Owner

@tarao tarao commented Dec 16, 2018

Attempt to replace verification process will be rejected.

function verify(pullRequestPath) {
try {
var res = githubRequest(pullRequestPath + '/files');
var files = JSON.parse(res.getContentText());
if (files.length > 20) return 'too_many_files';
return files.every(function(file) {
return file.filename.indexOf('strategy/') == 0;
}) ? 'ok' : 'violation';
} catch (e) {
return 'error';
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant