Mastering Code Reviews with GitHub Copilot: Coding Standards Demystified (Part 1)

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024
  • НаукаНаука

Комментарии • 17

  • @VishalGoyal18
    @VishalGoyal18 6 месяцев назад +1

    Extremely useful tutorial Amily

    • @ambilykk
      @ambilykk  6 месяцев назад

      Glad it was helpful!

  • @deepakduvedi7075
    @deepakduvedi7075 20 дней назад

    copilot doesn't pick all the rules in a single go and return random rules applied every time, any idea on this?

    • @ambilykk
      @ambilykk  19 дней назад

      Hello @deepakduvedi7075, it may be an issue with the coding standard file or prompt. Could you please review the Standard file - you can use copilot to construct one with specific rules and format.

    • @deepakduvedi7075
      @deepakduvedi7075 19 дней назад

      @@ambilykk when i re-prompt why you haven’t applied certain rules, it replies I overlooked them and then it applies. Rules file is correct multi time i have to ask and it applies all then :(

    • @ambilykk
      @ambilykk  15 дней назад

      @deepakduvedi7075 , Copilot's response is influenced by the context and the prompt you provide. To get the most accurate results, review your initial prompt and make it more detailed and specific, covering all necessary rules and requirements. Just like when asking a colleague for help, the more precise your request, the more accurate the response will be.

  • @sanketkhandekar2221
    @sanketkhandekar2221 6 месяцев назад +1

    very useful can we use for build and deploy for pipeline

    • @ambilykk
      @ambilykk  6 месяцев назад

      Copilot Enterprise released on 27th of this month may address this requirement in future. Currently, you can do Code Review using Copilot in IDE only. Please refer the feature comparison at github.com/features/copilot

    • @sanketkhandekar2221
      @sanketkhandekar2221 5 месяцев назад +1

      @@ambilykk Thank you can we do code review for entire workspace ?

    • @ambilykk
      @ambilykk  5 месяцев назад

      Hello @sanketkhandekar2221 , you can ask Copilot to review multiple files using the #file context variable. But, always it is good to review one file at a time. An example prompt looks like @workspace review code in #file:binary-search.py and #file:numberVerifier.py using coding standards defined at #file:py-naming.json
      Upcoming Code review feature in Copilot Enterprise will review multiple files as part of the PR.

    • @sanketkhandekar2221
      @sanketkhandekar2221 5 месяцев назад

      @@ambilykk Ok thank you this annonation is not working correctly it is saying give me peace of code

    • @ambilykk
      @ambilykk  5 месяцев назад

      Hello @sanketkhandekar2221 , don't copy the prompt as it is; instead use the @workspace agent and #file context variable for picking the file. Sometimes, copy of #file will not work, you should type #file and tab to select the actual file. Please refer the Context variables video at ruclips.net/video/hJIg8lGtIRU/видео.html

  • @sanketkhandekar2221
    @sanketkhandekar2221 6 месяцев назад

    can we invoke this

    • @ambilykk
      @ambilykk  6 месяцев назад

      Hello @sanketkhandekar2221, if you are looking for an API, it is not available now.

    • @sanketskhandekar
      @sanketskhandekar 6 месяцев назад +1

      Ok Thank you .

  • @koncht25
    @koncht25 4 месяца назад

    Very useful. Where can i find other videos about code review (functional reivew.....)

    • @ambilykk
      @ambilykk  4 месяца назад

      Thank you @koncht25.
      Currently I have few videos related to Code review; will upload new ones soon. Please refer to the current videos in the playlist GitHub Copilot for Code Review: ruclips.net/p/PLIPPtc5KlYDPWPVz2RuT1aAerbnzlro1A