diff --git a/actions/src/issues/checkIssueLabels.js b/actions/src/issues/checkIssueLabels.js index 7aec3400..5d88ec1f 100644 --- a/actions/src/issues/checkIssueLabels.js +++ b/actions/src/issues/checkIssueLabels.js @@ -50,7 +50,11 @@ const checkLabels = async () => { const handleGoodFirstIssueLabel = async (octokit, user) => { const issueNumber = context.payload.issue.number; // Comment on the issue and ping the onboarding team lead. - var commentBody = 'Hi @' + user + ', only certain users are allowed to add good first issue labels. Looping in @oppia/oppia-good-first-issue-labelers to add the label.'; + var commentBody = ( + 'Hi @' + user + ', only certain users are allowed to add good ' + + 'first issue labels. Looping in @oppia/oppia-good-first-issue-labelers ' + + 'to add the label.' + ); await octokit.issues.createComment( { body: commentBody, @@ -67,15 +71,6 @@ const handleGoodFirstIssueLabel = async (octokit, user) => { owner: context.repo.owner, repo: context.repo.repo }); - - // Assign issue to Team Lead. - core.info(`Assigning to ${whitelist.teamLeads.onboardingTeam}.`); - await octokit.issues.addAssignees({ - issue_number: issueNumber, - owner: context.repo.owner, - repo: context.repo.repo, - assignees: [whitelist.teamLeads.onboardingTeam], - }); }; /** diff --git a/spec/checkIssueLabelsSpec.js b/spec/checkIssueLabelsSpec.js index fe6bb752..c112a828 100644 --- a/spec/checkIssueLabelsSpec.js +++ b/spec/checkIssueLabelsSpec.js @@ -101,16 +101,6 @@ describe('Check Issue Labels Module', () => { repo: payload.repository.name, }); }); - - it('should assign team lead', () => { - expect(octokit.issues.addAssignees).toHaveBeenCalled(); - expect(octokit.issues.addAssignees).toHaveBeenCalledWith({ - issue_number: payload.issue.number, - assignees: [whitelist.teamLeads.onboardingTeam], - owner: payload.repository.owner.login, - repo: payload.repository.name, - }); - }); }); describe('check for good first issue by whitelisted user', () => { diff --git a/userWhitelist.json b/userWhitelist.json index 2cc5cd4f..f265951a 100644 --- a/userWhitelist.json +++ b/userWhitelist.json @@ -29,6 +29,7 @@ ], "codeOwnerFileReviewer":"DubeySandeep", "teamLeads": { + "onboardingTeam": "DubeySandeep", "releaseTeam": "vojtechjelinek", "welfareTeam": "DubeySandeep" },