Remove CLA Assistant (#2479)
* Remove yarn.lock and package.json from root * Remove CLA-Assistant
This commit is contained in:
@ -1,9 +1,21 @@
|
||||
import {message, danger, warn} from "danger"
|
||||
|
||||
|
||||
|
||||
// Check if package.json was changed, but not yarn.lock
|
||||
const packageChanged = danger.git.modified_files.includes('package.json');
|
||||
const lockfileChanged = danger.git.modified_files.includes('yarn.lock');
|
||||
if (packageChanged && !lockfileChanged) {
|
||||
const message = 'Changes were made to package.json, but not to yarn.lock';
|
||||
const idea = 'Perhaps you need to run `yarn install`?';
|
||||
warn(`${message} - <i>${idea}</i>`);
|
||||
}
|
||||
|
||||
|
||||
// CLA alert if first time contributor
|
||||
if(danger.github.pr.author_association === 'FIRST_TIME_CONTRIBUTOR' || danger.github.pr.author_association === 'NONE') {
|
||||
message(`Hello there and welcome to our project!`)
|
||||
message(`By submitting your Pull Request, you acknowledge that you agree with the terms of our [Contributor License Agreement](https://github.com/twentyhq/twenty/blob/main/.github/CLA.md).`)
|
||||
message(`Although we don't have a dedicated legal counsel, having this kind of agreement can protect us from potential legal issues or patent trolls.`)
|
||||
message(`Thank you for your understanding.`)
|
||||
}
|
||||
@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "twenty-utils",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"release": "node release.js"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user