Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Handle deps somewhere else
  • Loading branch information
avivkeller authored Jun 17, 2024
commit d7c988efde1055e1cf170d7507202b9bd597d4f7
20 changes: 0 additions & 20 deletions tools/actions/pr-open.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,6 @@ module.exports = async (client, context) => {
return new CodeOwners(content);
}

function shouldPingTSC(changedFiles) {
const user = context.payload.sender.login;
if (user === 'nodejs-github-bot') {
return false;
}

const TSC_FILE_PATHS = [
globToRegex('/deps/**'),
];

return changedFiles.some((filePath) => {
const normalizedPath = filePath.startsWith('/') ? filePath : `/${filePath}`;
return TSC_FILE_PATHS.some((pattern) => pattern.test(normalizedPath));
});
}

async function makeInitialComment(changedFiles) {
const codeOwners = await getCodeOwners();

Expand All @@ -87,10 +71,6 @@ module.exports = async (client, context) => {
'Please be patient and wait for them to review your changes.\n\n' +
"If you have any questions, please don't hesitate to ask!";

if (shouldPingTSC(changedFiles)) {
body += '\n\nA modification in this PR may require @nodejs/tsc\'s approval.';
}

return client.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down