From d81ccd8a9c9c3f74fde2e5aaa55d67047f49ad74 Mon Sep 17 00:00:00 2001 From: K Om Senapati Date: Sat, 26 Oct 2024 10:11:00 +0530 Subject: [PATCH] Delete .github/workflows/auto_lable_issue.yml --- .github/workflows/auto_lable_issue.yml | 35 -------------------------- 1 file changed, 35 deletions(-) delete mode 100644 .github/workflows/auto_lable_issue.yml diff --git a/.github/workflows/auto_lable_issue.yml b/.github/workflows/auto_lable_issue.yml deleted file mode 100644 index debb5e9..0000000 --- a/.github/workflows/auto_lable_issue.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Auto Label Issue - -on: - issues: - types: [opened, reopened, edited] - -jobs: - label_issue: - runs-on: ubuntu-latest - permissions: - issues: write - steps: - - name: Label Issue - uses: actions/github-script@v6 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const issue = context.payload.issue; - const issueBody = issue.body ? issue.body.toLowerCase() : ''; - const issueTitle = issue.title.toLowerCase(); - - // Add gssoc label to all issues - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue.number, - }); - const addLabel = async (label) => { - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue.number, - labels: [label] - }); - }; \ No newline at end of file