name: pre-pr description: Run pre-PR validation for the mongo-go-driver. Runs the default task target, checks for public API changes, and summarizes what passed or failed. disable-model-invocation: false
Run pre-PR validation for the mongo-go-driver repository. Follow these steps in order:
Run the default task target: Execute
task(which runs build, check-license, check-fmt, check-modules, lint, and test-short). Report any failures with the exact error output.Check for public API changes: Run
git diff --name-only $(git merge-base HEAD master)..HEADand check whether any files undermongo/,bson/,event/, ortag/were modified. If yes, remind the user to runtask api-reportand include the output in their PR description.Check for migration doc updates: If any user-visible breaking changes were made, remind the user to update
docs/migration-2.0.md.Check commit message format: Verify that commit messages on this branch follow the
GODRIVER-NNNN Short descriptionformat. Flag any that don't.Summarize: Report what passed, what failed, and any required follow-up steps (api-report, migration doc, JIRA prefix).
Note: The bundled mongo-go-driver-pr-review skill does a deeper review of the code changes themselves — run that after this validation passes.
Source: mongodb/mongo-go-driver — distributed by TomeVault.