diff --git a/.github/workflows/pr-title-spell-check.yml b/.github/workflows/pr-title-spell-check.yml index 12fc9b69d..c9d31da7f 100644 --- a/.github/workflows/pr-title-spell-check.yml +++ b/.github/workflows/pr-title-spell-check.yml @@ -1,4 +1,4 @@ -name: PR Validations +name: PR Title Spell Check on: merge_group: @@ -15,9 +15,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - require_assignee: repository - name: Store PR title in a file shell: bash @@ -30,5 +27,14 @@ jobs: with: files: ./pr_title.txt - + - name: Assign + run: | + PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") + curl -L \ + -X POST \ + -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}/issues/${PR_NUMBER}/assignees \ + -d '{"assignees":["${{ github.event.pull_request.user.login }}"]}' \ No newline at end of file