Skip to content

feat(anagram): add C solution (#68) #67

feat(anagram): add C solution (#68)

feat(anagram): add C solution (#68) #67

Workflow file for this run

name: PR description

Check warning on line 1 in .github/workflows/pr-check.yml

View workflow run for this annotation

GitHub Actions / PR description

Workflow execution policy warning (evaluate mode)

On December 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
# pull_request_target runs without approval on pull requests from forks. It never checks out
# the pull request's code, it only reads the description, so that's safe.
on:
pull_request_target:
types: [opened, edited, reopened, synchronize]
permissions: {}
jobs:
how-it-works:
runs-on: ubuntu-latest
steps:
- name: The "How it works" section is filled in
run: |
jq -r '.pull_request.body // ""' "$GITHUB_EVENT_PATH" > body.md
text=$(awk '/^## /{on = /^## How it works/; next} on' body.md | sed 's/<!--.*-->//g' | tr -s '[:space:]' ' ')
if [ "${#text}" -lt 60 ]; then
echo "::error::Explain your change under '## How it works' in the pull request description, in your own words (a couple of sentences). Edit the description and this check re-runs."
exit 1
fi