From d7dd56226d52a94950bfa07f11babd01e7cced9a Mon Sep 17 00:00:00 2001 From: Anjaliavv51 <154777864+Anjaliavv51@users.noreply.github.com> Date: Wed, 31 Jul 2024 22:02:43 +0530 Subject: [PATCH] update in auto label pr #1079 --- .github/workflows/auto-label-pr.yml | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/.github/workflows/auto-label-pr.yml b/.github/workflows/auto-label-pr.yml index 25824c74..e6cbe781 100644 --- a/.github/workflows/auto-label-pr.yml +++ b/.github/workflows/auto-label-pr.yml @@ -23,31 +23,4 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, labels: ['gssoc'] - }) - - - name: Add additional labels based on title - uses: actions/github-script@v6 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const title = context.payload.pull_request.title.toLowerCase(); - const labelsToAdd = []; - - if (title.includes('documentation')) { - labelsToAdd.push('documentation'); - } - if (title.includes('feature')) { - labelsToAdd.push('feature'); - } - if (title.includes('bug')) { - labelsToAdd.push('bug'); - } - - if (labelsToAdd.length > 0) { - github.rest.issues.addLabels({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: labelsToAdd - }); - } \ No newline at end of file + }) \ No newline at end of file