From 2b52b20b460116dd06d3b8839ecf5afd413729e3 Mon Sep 17 00:00:00 2001 From: ANSHIKA-26 <114569262+ANSHIKA-26@users.noreply.github.com> Date: Wed, 2 Oct 2024 19:22:54 +0530 Subject: [PATCH] only assign --- .github/workflows/issue_thank.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/issue_thank.yaml b/.github/workflows/issue_thank.yaml index 9a4bbc9b..d3a6cfa1 100644 --- a/.github/workflows/issue_thank.yaml +++ b/.github/workflows/issue_thank.yaml @@ -1,4 +1,4 @@ -name: Auto Assign, Thank, and Label Issues +name: Auto Assign and Thank Issues on: issues: @@ -13,10 +13,10 @@ jobs: issues: write steps: - - name: 'Thank, assign, and label the issue' - uses: actions/github-script@v7 # Latest version + - name: 'Thank and assign the issue to the creator' + uses: actions/github-script@v7 # Updated to v7 with: - github-token: ${{ secrets.GITHUB_TOKEN }} # Use GitHub Token + github-token: ${{ secrets.GITHUB_TOKEN }} # Use auto-generated GitHub Token script: | const issueNumber = context.issue.number; const issueCreator = context.payload.issue.user.login; @@ -36,11 +36,3 @@ jobs: repo: context.repo.repo, assignees: [issueCreator] }); - - // Add the label "ggsoc-ext" to the issue - await github.rest.issues.addLabels({ - issue_number: issueNumber, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ['ggsoc-ext'] # Label to be added - });