From 599dff73a439128671deab635ea2abeb21d176a1 Mon Sep 17 00:00:00 2001 From: Saksham Sharma Date: Wed, 14 Aug 2024 16:12:33 +0530 Subject: [PATCH] test: ci test --- .github/workflows/pr-title-spell-check.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr-title-spell-check.yml b/.github/workflows/pr-title-spell-check.yml index 3a6ff8ce7..d2a93d5e1 100644 --- a/.github/workflows/pr-title-spell-check.yml +++ b/.github/workflows/pr-title-spell-check.yml @@ -28,14 +28,12 @@ jobs: files: ./pr_title.txt - name: Check assignee - with: - require_assignee: true run: | - response=$(curl -L \ + PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") + + response=$(curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/${{ github.repository }}/assignees) + https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}) echo "$response"