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

Fix #236 and #313: Remove unnecessary comment about modifications to codeowner file; notify server admins about changes to files in jobs and platform folders. #332

Merged
merged 19 commits into from
Aug 2, 2023
Merged
2 changes: 1 addition & 1 deletion .github/workflows/frontend_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16'
- name: Install dependencies
run: npm install
- name: Run frontend tests
Expand Down
4 changes: 0 additions & 4 deletions constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ const issuesLabelCheck = 'issues-labeled-check';
const issuesAssignedCheck = 'issues-assigned-check';
const forcePushCheck = 'force-push-check';
const pullRequestReviewCheck = 'pr-review-check';
const codeOwnerCheck = 'code-owner-check';
const ciFailureCheck = 'ci-failure-check';
const updateWithDevelopCheck = 'update-with-develop-check';
const respondToReviewCheck = 'respond-to-review-check';
Expand All @@ -79,7 +78,6 @@ const checksWhitelist = {
[openEvent]: [
assigneeCheck,
claCheck,
codeOwnerCheck,
branchCheck,
jobCheck,
cronJobCheck,
Expand All @@ -102,7 +100,6 @@ const checksWhitelist = {
jobCheck,
cronJobCheck,
modelCheck,
codeOwnerCheck,
],
[closeEvent]: [allMergeConflictCheck, updateWithDevelopCheck],
[editEvent]: [wipCheck],
Expand Down Expand Up @@ -169,7 +166,6 @@ module.exports.hotfixLabelCheck = hotfixLabelCheck;
module.exports.prTemplateCheck = prTemplateCheck;
module.exports.forcePushCheck = forcePushCheck;
module.exports.pullRequestReviewCheck = pullRequestReviewCheck;
module.exports.codeOwnerCheck = codeOwnerCheck;
module.exports.ciFailureCheck = ciFailureCheck;
module.exports.updateWithDevelopCheck = updateWithDevelopCheck;
module.exports.respondToReviewCheck = respondToReviewCheck;
Expand Down
7 changes: 2 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const checkCriticalPullRequestModule = require(
);
const checkBranchPushModule = require('./lib/checkBranchPush');
const checkPullRequestReviewModule = require('./lib/checkPullRequestReview');
const newCodeOwnerModule = require('./lib/checkForNewCodeowner');
const ciCheckModule = require('./lib/ciChecks');
const periodicCheckModule = require('./lib/periodicChecks');

Expand Down Expand Up @@ -84,7 +83,8 @@ const runChecks = async (context, checkEvent) => {
);
break;
case constants.jobCheck:
callable.push(checkPullRequestJobModule.checkForNewJob(context));
callable.push(
checkPullRequestJobModule.checkForModificationsToFiles(context));
break;
case constants.cronJobCheck:
callable.push(checkCronJobModule.checkForNewCronJob(context));
Expand Down Expand Up @@ -132,9 +132,6 @@ const runChecks = async (context, checkEvent) => {
checkPullRequestReviewModule.handlePullRequestReview(context)
);
break;
case constants.codeOwnerCheck:
callable.push(newCodeOwnerModule.checkForNewCodeowner(context));
break;
case constants.ciFailureCheck:
callable.push(ciCheckModule.handleFailure(context));
break;
Expand Down
163 changes: 0 additions & 163 deletions lib/checkForNewCodeowner.js

This file was deleted.

4 changes: 2 additions & 2 deletions lib/checkNewCronJobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const {
} = require('../userWhitelist.json');
const {
DATASTORE_LABEL,
JOBS_AND_FETURES_TESTING_WIKI_LINK,
JOBS_AND_FEATURES_TESTING_WIKI_LINK,
getAllChangedFiles,
hasDatastoreLabel,
pingAndAssignUsers
Expand Down Expand Up @@ -79,7 +79,7 @@ const getCommentBody = (changedFiles, prAuthor) => {
const serverJobsForm = 'server jobs form'.link(
'https://goo.gl/forms/XIj00RJ2h5L55XzU2');
const wikiLinkText = 'this guide'.link(
JOBS_AND_FETURES_TESTING_WIKI_LINK);
JOBS_AND_FEATURES_TESTING_WIKI_LINK);

const serverAdminPing = (
'Hi @' + serverJobAdmins.join(', @') +
Expand Down
Loading
Loading