You can open a new issue by selecting lines of code from an existing file within a repository or pull request. Issues that are opened from code contain a URL that points to the specified code range.
Any GitHub Enterprise user can create an issue in a public repository where issues have not been disabled.
On GitHub Enterprise, navigate to the main page of the repository.
Navigate to the file or pull request that contains the code you want to open an issue about.
- If you're referencing code within a pull request, click Files changed, then browse to the file that contains the code you'd like to include your issue. Click View.
Hover over the first line of the code range you want and click the line number to highlight the code line.
Hover over the last line of the code range, press Shift, and click the line number to highlight the code range.
To the left of the code range, click ... and select Open new issue.
Type a title and description for your issue.
When you're finished, click Submit new issue.