Commit 91b767e
committed
Fix add_comment_to_pending_review for fork PRs
The addPullRequestReviewThread GraphQL mutation requires the PullRequestID
field to correctly identify the pull request context for fork PRs. Without
this field, the API returns null for the thread ID, causing comments to fail.
This adds the PullRequestID to both the query (to fetch it) and the mutation
input, fixing the issue for fork-based pull requests.
Fixes #17481 parent 80b0306 commit 91b767e
2 files changed
+53
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1743 | 1743 | | |
1744 | 1744 | | |
1745 | 1745 | | |
| 1746 | + | |
1746 | 1747 | | |
1747 | 1748 | | |
1748 | 1749 | | |
| |||
1788 | 1789 | | |
1789 | 1790 | | |
1790 | 1791 | | |
| 1792 | + | |
1791 | 1793 | | |
1792 | 1794 | | |
1793 | 1795 | | |
| |||
1799 | 1801 | | |
1800 | 1802 | | |
1801 | 1803 | | |
| 1804 | + | |
1802 | 1805 | | |
1803 | 1806 | | |
1804 | 1807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2731 | 2731 | | |
2732 | 2732 | | |
2733 | 2733 | | |
| 2734 | + | |
2734 | 2735 | | |
2735 | 2736 | | |
2736 | 2737 | | |
| |||
2756 | 2757 | | |
2757 | 2758 | | |
2758 | 2759 | | |
| 2760 | + | |
2759 | 2761 | | |
2760 | 2762 | | |
2761 | 2763 | | |
| |||
2788 | 2790 | | |
2789 | 2791 | | |
2790 | 2792 | | |
| 2793 | + | |
2791 | 2794 | | |
2792 | 2795 | | |
2793 | 2796 | | |
| |||
2813 | 2816 | | |
2814 | 2817 | | |
2815 | 2818 | | |
| 2819 | + | |
2816 | 2820 | | |
2817 | 2821 | | |
2818 | 2822 | | |
| |||
3183 | 3187 | | |
3184 | 3188 | | |
3185 | 3189 | | |
| 3190 | + | |
3186 | 3191 | | |
3187 | 3192 | | |
3188 | 3193 | | |
3189 | 3194 | | |
3190 | 3195 | | |
| 3196 | + | |
| 3197 | + | |
| 3198 | + | |
| 3199 | + | |
| 3200 | + | |
| 3201 | + | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
3191 | 3241 | | |
3192 | 3242 | | |
3193 | 3243 | | |
| |||
0 commit comments