Skip to content

Commit

Permalink
test: ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
Saksham Sharma authored and Saksham Sharma committed Aug 14, 2024
1 parent 6e2be1f commit 12d857f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/pr-title-spell-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Validations
name: PR Title Spell Check

on:
merge_group:
Expand All @@ -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
Expand All @@ -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 }}"]}'

0 comments on commit 12d857f

Please sign in to comment.