How to provide code suggestions in an Issue? #168740
-
Select Topic AreaQuestion Feature AreaIssues BodySimilar to how you can link to a range of lines, is it possible to provide suggestions (a diff) in Issues the way you can in Pull Requests? Guidelines |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey! GitHub only supports code suggestions (diff view) in pull requests, not in issues. But here are two ways you can share suggestions in issues:
It won’t be clickable like in PRs, but it's still easy to follow. |
Beta Was this translation helpful? Give feedback.
Hey! GitHub only supports code suggestions (diff view) in pull requests, not in issues.
But here are two ways you can share suggestions in issues:
https://github.com/user/repo/blob/branch/file.js#L10-L20Post a manual diff block using triple backticks and
diff:It won’t be clickable like in PRs, but it's still easy to follow.
If you find this message useful, Mark as answer under this message to help others, see this guidance for the same issue. Thanks!