Skip to main content

Utilisation de GitHub Copilot pour créer ou mettre à jour des problèmes

Permet Copilot de générer rapidement des problèmes structurés et de haute qualité à partir du langage naturel ou des images, sans remplir manuellement chaque champ.

Remarque

Cette fonctionnalité est en cours de développement préversion publique et est susceptible de changer.

          Copilot est capable de créer ou de mettre à jour des problèmes à partir d’une requête formulée en langage naturel ou d’une capture d’écran. Il renseigne le titre, le contenu, les étiquettes, les assignations et davantage encore, en s’appuyant sur les formulaires ou modèles de problème disponibles dans votre référentiel. Examinez et affinez chaque brouillon avant de soumettre.

Créer un problème

  1. Accédez à https://github.com/copilot.

  2. Dans le champ de saisie, décrivez le problème que vous souhaitez créer. Permet repo-owner/repo-name de cibler un référentiel spécifique.

    Par exemple:

    •      <code id="3324238666">Dans OWNER/REPOSITORY, créez une demande de fonctionnalité pour ajouter une correspondance approximative à la recherche.</code><a href="https://github.com/copilot?prompt=Dans%20OWNER%2FREPOSITORY%2C%20cr%C3%A9ez%20une%20demande%20de%20fonctionnalit%C3%A9%20pour%20ajouter%20une%20correspondance%20approximative%20%C3%A0%20la%20recherche." target="_blank" class="tooltipped tooltipped-n ml-1 copilot-prompt-long" aria-label="Run this prompt in Copilot Chat" aria-describedby="3324238666" style="text-decoration:none;"><svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-copilot" aria-hidden="true"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg></a><a href="https://github.com/copilot?prompt=Dans%20OWNER%2FREPOSITORY%2C%20cr%C3%A9ez%20une%20demande%20de%20fonctionnalit%C3%A9%20pour%20ajouter%20une%20correspondance%20approximative%20%C3%A0%20la%20recherche." target="_blank" class="tooltipped tooltipped-n ml-1 copilot-prompt-short" aria-label="Run prompt" aria-describedby="3324238666" style="text-decoration:none;"><svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-copilot" aria-hidden="true"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg></a>
      
    •      <code id="2615441731">Signalez un bogue pour une erreur 500. Cela se produit de façon cohérente lorsque j’essaie de me connecter au site.</code><a href="https://github.com/copilot?prompt=Signalez%20un%20bogue%20pour%20une%20erreur%20500.%20Cela%20se%20produit%20de%20fa%C3%A7on%20coh%C3%A9rente%20lorsque%20j%E2%80%99essaie%20de%20me%20connecter%20au%20site." target="_blank" class="tooltipped tooltipped-n ml-1 copilot-prompt-long" aria-label="Run this prompt in Copilot Chat" aria-describedby="2615441731" style="text-decoration:none;"><svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-copilot" aria-hidden="true"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg></a><a href="https://github.com/copilot?prompt=Signalez%20un%20bogue%20pour%20une%20erreur%20500.%20Cela%20se%20produit%20de%20fa%C3%A7on%20coh%C3%A9rente%20lorsque%20j%E2%80%99essaie%20de%20me%20connecter%20au%20site." target="_blank" class="tooltipped tooltipped-n ml-1 copilot-prompt-short" aria-label="Run prompt" aria-describedby="2615441731" style="text-decoration:none;"><svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-copilot" aria-hidden="true"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg></a>
      
    •      <code id="3847679289">Créez une tâche pour modifier l’arrière-plan du logo de l’application en rouge et ajoutez l’étiquette « besoin d’une révision de conception ».</code><a href="https://github.com/copilot?prompt=Cr%C3%A9ez%20une%20t%C3%A2che%20pour%20modifier%20l%E2%80%99arri%C3%A8re-plan%20du%20logo%20de%20l%E2%80%99application%20en%20rouge%20et%20ajoutez%20l%E2%80%99%C3%A9tiquette%20%C2%AB%20besoin%20d%E2%80%99une%20r%C3%A9vision%20de%20conception%20%C2%BB." target="_blank" class="tooltipped tooltipped-n ml-1 copilot-prompt-long" aria-label="Run this prompt in Copilot Chat" aria-describedby="3847679289" style="text-decoration:none;"><svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-copilot" aria-hidden="true"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg></a><a href="https://github.com/copilot?prompt=Cr%C3%A9ez%20une%20t%C3%A2che%20pour%20modifier%20l%E2%80%99arri%C3%A8re-plan%20du%20logo%20de%20l%E2%80%99application%20en%20rouge%20et%20ajoutez%20l%E2%80%99%C3%A9tiquette%20%C2%AB%20besoin%20d%E2%80%99une%20r%C3%A9vision%20de%20conception%20%C2%BB." target="_blank" class="tooltipped tooltipped-n ml-1 copilot-prompt-short" aria-label="Run prompt" aria-describedby="3847679289" style="text-decoration:none;"><svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-copilot" aria-hidden="true"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg></a>
      

    Remarque

    Vous pouvez uniquement créer des problèmes dans les référentiels où vous avez déjà l’autorisation de le faire.

  3. Si vous le souhaitez, vous pouvez coller, faire glisser ou attacher une image à votre invite. Ajoutez du texte pour décrire le problème, par exemple : Create an issue because this error appears when trying to reset a password.

  4.        Copilot rédige un problème avec un titre, un corps et des métadonnées suggérés (étiquettes, affectations, type de problème). Si votre dépôt comporte des formulaires ou des modèles de problème, Copilot associe votre demande aux champs appropriés.
    
  5. Examinez le brouillon. Modifiez n’importe quel champ, choisissez un autre modèle ou demandez-lui Copilot d’apporter des modifications à l’aide d’une invite de suivi.

  6. Cliquez sur Créer.

Créer plusieurs problèmes

Lorsque votre requête comporte plusieurs tâches ou anomalies, Copilot les rédige individuellement.

Par exemple : Dans OWNER/REPOSITORY, créez 3 problèmes : 1) DÉTAILS D’UNE TÂCHE, 2) DÉTAILS D’UNE AUTRE TÂCHE, 3) DÉTAILS D’UNE TROISIÈME TÂCHE

Passez en revue et modifiez chaque brouillon individuellement, puis cliquez sur Créer pour publier.

Créer des sous-problèmes

          Copilot peut structurer une tâche en un problème principal accompagné de sous-problèmes.

Par exemple:

In octo-org/octo-repo, plan a new user dashboard. Break it down into an epic, and create sub-issues for each main feature and task.

          Copilot génère un brouillon d’arborescence de problèmes avec un problème parent et des sous-problèmes en dessous. Développez ou réduisez les sous-éléments, modifiez les détails et utilisez des incitations de suivi pour ajouter ou supprimer des sous-éléments.

Lorsque vous êtes prêt, cliquez sur Vérifier et créer, puis sur Créer des problèmes.

Mettre à jour un problème existant

Demandez Copilot de modifier un problème existant. Par exemple:

In octo-org/octo-repo, update issue #123 to add more details about the bug and steps to reproduce it. Also, change the label to "bug" and assign it to @username.

Passez en revue le brouillon dans workbench, puis cliquez sur Mettre à jour.

          Copilot peut connecter de nouveaux problèmes à ceux qui existent déjà. Par exemple:
  • Create a sub-issue for octo-org/octo-repo issue #456.
  • Create a parent issue for octo-org/octo-repo issue #456.
  • Create a parent issue for octo-org/octo-repo issues #456, #457, and #458.

Examinez le brouillon dans l’atelier, puis sélectionnez Vérifier et créer > Créer des tickets.

Affecter un problème à Copilot

Avec Agent cloud Copilot activé, vous pouvez affecter un problème à Copilot pendant sa création. Consultez « Gestion de l’accès à GitHub Copilot agent cloud ».

  • Langage naturel : Inclure Assign this issue to Copilot. dans votre invite.

  • Manuellement: Sélectionnez «Copilot » dans la liste des destinataires.

            Copilot commence à traiter le problème automatiquement dès sa création.
    

Lectures complémentaires