diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml index de91708..14336fe 100644 --- a/.github/workflows/assign.yml +++ b/.github/workflows/assign.yml @@ -11,9 +11,18 @@ jobs: steps: - name: Assign Issue to Creator - uses: peter-evans/create-or-update-issue@v2 + uses: actions/github-script@v7 with: - issue: ${{ github.event.issue.number }} - assignees: ${{ github.event.issue.user.login }} + script: | + const issueNumber = context.payload.issue.number; + const creator = context.payload.issue.user.login; + + await github.issues.addAssignees({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issueNumber, + assignees: [creator], + }); + env: - GITHUB_TOKEN: ${{ secrets.SNOW }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 4b852a5..9a324dd 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -11,6 +11,6 @@ jobs: steps: - uses: actions/first-interaction@v1 with: - repo-token: ${{ secrets.SNOW }} - issue-message: "Woohoo! Your first every issue has been created🎊🎊!!" - pr-message: "Perfection! Advancing through the open source world huh?🎊🎊 :)" + repo-token: ${{ secrets.TOKEN }} + issue-message: "Woohoo! Your first ever issue with us in this repository has been created🎊🎊!!" + pr-message: "Perfection! Advancing through the open source world!🎊🎊 :) Please be patient while our maintainers and reviewers check the code." diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index 2fd7b17..0e6d655 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -14,16 +14,18 @@ jobs: uses: actions/github-script@v7 with: script: | - const issueNumber = context.payload.issue.number; + const { data: issue } = await github.issues.get({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.payload.issue.number, + }); await github.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, - issue_number: issueNumber, + issue_number: context.payload.issue.number, labels: ['contribution'], }); env: - GITHUB_TOKEN: ${{ secrets.SNOW }} - - + GITHUB_TOKEN: ${{ secrets.TOKEN }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index db285dd..cdea7d9 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/stale@v5 with: - repo-token: ${{ secrets.SNOW }} + repo-token: ${{ secrets.TOKEN }} stale-issue-message: 'We noticed that this Issue has been inactive for quite some time. πŸ₯Ί' stale-pr-message: 'This PR has no activity, Maintainers and Reviewers we need help here πŸ’–' stale-issue-label: 'inactive-issue'