Skip to content

ci: add assignee to a PR #1194

ci: add assignee to a PR

ci: add assignee to a PR #1194

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
with:
require_assignee: true
run: |

Check failure on line 33 in .github/workflows/pr-title-spell-check.yml

View workflow run for this annotation

GitHub Actions / PR Validations

Invalid workflow file

The workflow is not valid. .github/workflows/pr-title-spell-check.yml (Line: 33, Col: 9): Unexpected value 'run' .github/workflows/pr-title-spell-check.yml (Line: 30, Col: 9): Required property is missing: uses
response=$(curl -L \
-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)
echo "$response"