-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add whitelist for oppia-android * Remove debug statement * Fix check * Change to whitelist * Address review comments
- Loading branch information
1 parent
65d7a1b
commit f59f724
Showing
4 changed files
with
222 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
const openEvent = 'opened'; | ||
const reopenEvent = 'reopened'; | ||
const labelEvent = 'labeled'; | ||
const synchronizeEvent = 'synchronize'; | ||
const closeEvent = 'closed'; | ||
const editEvent = 'edited'; | ||
|
||
const claCheck = 'cla-check'; | ||
const changelogCheck = 'changelog-check'; | ||
// This check is required in re-open events as well to | ||
// prevent user from reopening the PR. | ||
const branchCheck = 'branch-check'; | ||
const wipCheck = 'wip-check'; | ||
const assigneeCheck = 'assignee-check'; | ||
const mergeConflictCheck = 'merge-conflict-check'; | ||
const allMergeConflictCheck = 'all-merge-conflict-check'; | ||
|
||
const checksWhitelist = { | ||
'oppia-android': { | ||
[openEvent]: [claCheck], | ||
[reopenEvent]: [], | ||
[labelEvent]: [], | ||
[synchronizeEvent]: [], | ||
[closeEvent]: [], | ||
[editEvent]: [] | ||
}, | ||
'oppia': { | ||
[openEvent]: [ | ||
claCheck, | ||
changelogCheck, | ||
branchCheck, | ||
wipCheck | ||
], | ||
[reopenEvent]: [ | ||
changelogCheck, | ||
branchCheck, | ||
wipCheck | ||
], | ||
[labelEvent]: [assigneeCheck], | ||
[synchronizeEvent]: [mergeConflictCheck], | ||
[closeEvent]: [allMergeConflictCheck], | ||
[editEvent]: [wipCheck] | ||
} | ||
}; | ||
|
||
module.exports.openEvent = openEvent; | ||
module.exports.reopenEvent = reopenEvent; | ||
module.exports.labelEvent = labelEvent; | ||
module.exports.synchronizeEvent = synchronizeEvent; | ||
module.exports.closeEvent = closeEvent; | ||
module.exports.editEvent = editEvent; | ||
|
||
module.exports.claCheck = claCheck; | ||
module.exports.changelogCheck = changelogCheck; | ||
module.exports.branchCheck = branchCheck; | ||
module.exports.wipCheck = wipCheck; | ||
module.exports.assigneeCheck = assigneeCheck; | ||
module.exports.mergeConflictCheck = mergeConflictCheck; | ||
module.exports.allMergeConflictCheck = allMergeConflictCheck; | ||
|
||
module.exports.getChecksWhitelist = function() { | ||
return checksWhitelist; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters