Skip to content
Discussion options

You must be logged in to vote

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:

  • Link to a specific line range in a file like this: https://github.com/user/repo/blob/branch/file.js#L10-L20
  1. Post a manual diff block using triple backticks and diff:

    - old line of code
    + new suggestion

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!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by esafak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issues Repository issues let you track features, problems, and more alongside your code Question Ask and answer questions about GitHub features and usage
2 participants