Créer une Pull Request GitHub

VérifiéSûr

Crée ou met à jour une pull request GitHub avec intégration Jira et diagrammes Mermaid. Exécute d'abord les vérifications préalables (pre-push) et s'arrête en cas d'échec. Utilisez-la lorsque vous êtes prêt à soumettre votre code pour révision ou à modifier une PR existante.

Spar Skills Guide Bot
DeveloppementIntermédiaire
9002/06/2026
Claude Code
#pull-request#github#jira#pre-push#mermaid

Recommandé pour

Notre avis

Crée ou met à jour une pull request GitHub avec intégration Jira et diagrammes Mermaid après avoir exécuté les vérifications pré-push.

Points forts

  • Intègre automatiquement les détails du ticket Jira
  • Génère une pull request structurée à partir d'un modèle
  • Inclut des diagrammes Mermaid pour illustrer les modifications
  • Met à jour les PR existantes sans duplication d'effort

Limites

  • Nécessite un outil MCP spécifique pour Jira (mcp__atlassian__getJiraIssue)
  • L'identifiant cloud Jira est codé en dur (vuoriclothing.atlassian.net)
  • Ne peut pas ignorer les vérifications pré-push, même pour des changements mineurs
Quand l'utiliser

Utilisez cette compétence lorsque vous avez du code prêt sur une branche et que vous devez créer ou mettre à jour une pull request pour la revue.

Quand l'éviter

N'utilisez pas cette compétence pour des PR de brouillon ou exploratoires où les vérifications ne sont pas censées réussir.

Analyse de sécurité

Sûr
Score qualité85/100

The skill runs standard development commands (git, gh, npm run pre-push) and fetches Jira issues. No destructive or exfiltrating actions. Executing npm scripts is a normal part of the workflow and not inherently risky in a controlled environment.

Aucun point d'attention détecté

Exemples

Create new PR
/create-pr
Update existing PR
/create-pr

name: create-pr description: Creates or updates a GitHub PR with Jira integration, mermaid diagrams, and AI disclosure. Runs pre-push checks first. Use when ready to submit code for review or update an existing PR. Invoke with /create-pr. allowed-tools:

  • Bash
  • Read
  • Grep
  • Glob
  • mcp__atlassian__getJiraIssue

Creating Pull Request

Creates a well-structured PR using the project's template, with Jira integration and visual diagrams.

Workflow

1. Get Branch & Detect Ticket

git branch --show-current

Extract ticket ID from branch (e.g., feat/TDE-7358-optimize-elevarTDE-7358).

2. Check for Existing PR

gh pr view --json number,title,body,url 2>/dev/null
  • If PR exists: will update it
  • If no PR: will create new one

3. Run Pre-Push Checks

npm run pre-push

If checks fail, stop and report errors. Do not create/update PR with failing checks.

4. Fetch Jira Ticket Details

mcp__atlassian__getJiraIssue
- cloudId: vuoriclothing.atlassian.net
- issueIdOrKey: <ticket-id>

Extract: fields.summary, fields.description, fields.issuetype.name

5. Analyze Changes

git diff main...HEAD --stat
git diff main...HEAD --name-only
git log main...HEAD --oneline

Read key changed files to understand what was modified and how components interact.

6. Generate PR Content

See template.md for the full PR template.

Title format: <type>: [TICKET-ID] <short description>

Types: feat, fix, refactor, perf, docs, test, chore

7. Create or Update PR

New PR:

git push -u origin <branch-name>
gh pr create --base main --title "<title>" --body "<body>"

Existing PR:

git push
gh pr edit --title "<title>" --body "<body>"

8. Report Result

Output: PR URL, summary of changes, items needing manual attention.

Mermaid Diagrams

See diagrams.md for diagram examples and guidelines.

  • Use diagrams that accurately represent changes
  • Match complexity to PR scope
  • Include all affected services for integration changes

Notes

  • Always push changes before creating/updating PR
  • If pre-push fails, fix issues first
  • Default base branch is main
  • Do NOT add AI attribution footers to PR description
Skills similaires