dkamm/PR Quiz

A GitHub Action that uses AI to generate a quiz based on a pull request

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jul 28, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: dkamm/pr-quiz@8843130fd1e2fa711a112b6dded1947493471350 # v0.1.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github-tokenGitHub token for API accessyes
openai-api-keyOpenAI API key for API accessyes
ngrok-authtokenThe ngrok authtoken to use for the server hosting the quiz.yes
modelThe model to use for generating the quiz. It must be a model that supports structured outputs. Defaults to 'o4-mini'.noo4-mini
lines-changed-thresholdThe minimum number of lines changed required to create a quiz. This is to prevent quizzes from being created for small pull requests.no100
time-limit-minutesThe time limit to complete the quiz in minutes. This prevents the action from running indefinitely.no10
max-attemptsThe maximum number of attempts to pass the quiz. A value of 0 means unlimited attempts.no3
exclude-file-patternsA list of file patterns to exclude from the quiz as a JSON-ified string.no["**/*-lock.json", "**/*-lock.yaml", "**/*.lock", "**/*.map", "**/*.pb.*", "**/*_pb2.py", "**/*.generated.*", "**/*.auto.*"]
system-promptOptional override for the system prompt. Be sure the specify that multiple choice questions must be returned.no

no outputs