1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/content/github/managing-your-work-on-github/opening-an-issue-from-code.md
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

1.9 KiB

title, intro, redirect_from, versions
title intro redirect_from versions
Opening an issue from code You can open a new issue from a specific line or lines of code in a file or pull request.
/articles/opening-an-issue-from-code
free-pro-team enterprise-server
* *

When you open an issue from code, the issue contains a snippet showing the line or range of code you chose. You can only open an issue in the same repository where the code is stored.

Code snippet rendered in an issue opened from code

{{ site.data.reusables.repositories.create-issue-in-public-repository }}

{{ site.data.reusables.repositories.navigate-to-repo }} 2. Locate the code you want to reference in an issue: - To open an issue about code in a file, navigate to the file. - To open an issue about code in a pull request, navigate to the pull request and click {% octicon "diff" aria-label="The file diff icon" %} Files changed. Then, browse to the file that contains the code you want include in your comment, and click View. {{ site.data.reusables.repositories.choose-line-or-range }} 4. To the left of the code range, click {% octicon "kebab-horizontal" aria-label="The horizontal kebab octicon" %}. In the drop-down menu, click Reference in new issue. Kebab menu with option to open a new issue from a selected line {{ site.data.reusables.repositories.type-issue-title-and-description }} {{ site.data.reusables.repositories.assign-an-issue-as-project-maintainer }} {{ site.data.reusables.repositories.submit-new-issue }}

Further reading