Toolverse
All skills

github-pr-inline-reply

by Azure-Samples

Reply to inline PR review comments on GitHub pull requests using the GitHub API. Use this skill when you need to respond to individual review comments on a PR, acknowledge feedback, or mark comments as resolved by posting direct replies to comment threads.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Backend
Views
1

About this skill

Reply to inline PR review comments on GitHub pull requests using the GitHub API. Use this skill when you need to respond to individual review comments on a PR, acknowledge feedback, or mark comments as resolved by posting direct replies to comment threads.

How to use

  1. Pobierz listę komentarzy do pull requesta, uruchamiając polecenie gh api repos/{owner}/{repo}/pulls/{pull_number}/comments — otrzymasz obiekty komentarzy zawierające ich identyfikatory (pole id).

  2. Zidentyfikuj identyfikator komentarza, do którego chcesz odpowiedzieć. Dla komentarzy w wątkach użyj id głównego komentarza, nie node_id.

  3. Przygotuj treść odpowiedzi — może to być potwierdzenie zmian (np. "Naprawione w commit abc123"), odrzucenie (np. "Odrzucone — powód") lub odpowiedź na pytanie (np. "Dobra uwaga, rozwiązane w commit abc123").

  4. Wyślij odpowiedź za pomocą polecenia gh api repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies -X POST -f body="Twoja wiadomość" — odpowiedź pojawi się jako wątkowa odpowiedź pod oryginalnym komentarzem.

  5. Powtórz kroki 2–4 dla każdego komentarza, na który chcesz odpowiedzieć. Możesz odpowiadać na dowolne komentarze, w tym na recenzje od botów.

Related skills