Skip to content

ci: add assignee to a PR #1195

ci: add assignee to a PR

ci: add assignee to a PR #1195

name: PR Validations
on:
merge_group:
pull_request:
types:
- opened
- edited
- synchronize
jobs:
typos:
name: Spell check PR title
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Store PR title in a file
shell: bash
env:
TITLE: ${{ github.event.pull_request.title }}
run: echo $TITLE > pr_title.txt
- name: Spell check
uses: crate-ci/typos@master
with:
files: ./pr_title.txt
- name: Check assignee
run: |
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" \
https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER})
echo "$response"