From f8116c8945f09a2bcaa8992fb0f663a1a2a02c3f Mon Sep 17 00:00:00 2001
From: Vipul <vsvipul@github.com>
Date: Tue, 29 Nov 2022 13:19:00 +0530
Subject: [PATCH] Bug fix in PR assignee workflow

---
 .github/workflows/add-reviewer-pr.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/add-reviewer-pr.yml b/.github/workflows/add-reviewer-pr.yml
index cf65783..3346d9e 100644
--- a/.github/workflows/add-reviewer-pr.yml
+++ b/.github/workflows/add-reviewer-pr.yml
@@ -17,4 +17,4 @@ jobs:
         
     - name: Add Assignee
       run: |
-        curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{github.repository}}/issues/${{ github.event.issue.number}}/assignees -d '{"assignees":["${{steps.oncall.outputs.CURRENT}}"]}'    
+        curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{github.repository}}/issues/${{ github.event.pull_request.number}}/assignees -d '{"assignees":["${{steps.oncall.outputs.CURRENT}}"]}'