Skip to main content

atlas-cli-open-pr

Pre-PR validation and pull request creation workflow for the mongodb-atlas-cli repository. Use when the user asks to open a PR, create a pull request, submit changes for review, or push code to the repository.

Quellinformationen

Repository
mongodb/mongodb-atlas-cli
Letzte Quellaktivität
20. März 2026 um 09:45
Erkannte Sprache von SKILL.md
Englisch
Sterne
187
Forks
93

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
atlas-cli-open-pr
description
Pre-PR validation and pull request creation workflow for the mongodb-atlas-cli repository. Use when the user asks to open a PR, create a pull request, submit changes for review, or push code to the repository.
# Atlas CLI - Open Pull Request ## Step 1: Run pre-PR checks Run the validation script. It formats, lints, builds, tests, and regenerates docs — printing only errors: ```bash ./scripts/agent-pr-hook.sh ``` If any check fails, fix the reported issues and re-run until all checks pass. Stage and commit any files modified by formatting or doc generation. ## Step 2: Verify unit test coverage For each changed `.go` file (excluding `_test.go` and `mock`), check for a corresponding `_test.go`. Warn about missing test files but let the user decide whether to proceed. ## Step 3: Push and create PR (optional) **Ask the user before proceeding with this step.** Only push and create a PR if the user explicitly confirms. ```bash git push -u origin HEAD ``` Then create the PR using the repo's [PR template](.github/pull_request_template.md): ```bash gh pr create --title "CLOUDP-XXXXX: <description>" --body "$(cat <<'EOF' ## Proposed changes _Jira ticket:_ CLOUDP-XXXXX <Description> ## Checklist - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added any necessary documentation (if appropriate) - [x] I have run `make fmt` and formatted my code ## Further comments <context> EOF )" ``` Fill in the actual ticket ID and adjust the checklist to reflect what was done. Provide a suncict and clear description of the code changes in the `<Description>` placeholder.
Auf GitHub ansehen