question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

List opened PRs touching displayed file

See original GitHub issue

Issuehunt badges

When viewing a file in master for instance, History can show what commits/PRs/tags where applied to it; acting as a lens to the past of the file.

But it does not show the potential future of this file:

  • Opened PRs modifing the file

cc https://github.com/isaacs/github/issues/556


IssueHunt Summary

jerone jerone has been rewarded.

Backers (Total: $60.00)

Submitted pull Requests


Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
IssueHuntBotcommented, May 30, 2019

@issuehunt has funded $60.00 to this issue.


2reactions
fregantecommented, Dec 20, 2018
{
	repository(owner: "sindresorhus", name: "refined-github") {
		pullRequests(first: 100, states: OPEN) {
			nodes {
				files(first: 100) {
					nodes {
						path
					}
				}
			}
		}
	}
}
JSON output
{
    "data": {
        "repository": {
            "pullRequests": {
                "nodes": [
                    {
                        "files": {
                            "nodes": [
                                {
                                    "path": "readme.md"
                                },
                                {
                                    "path": "source/content.js"
                                },
                                {
                                    "path": "source/features/add-closed-milestone-due-date.js"
                                },
                                {
                                    "path": "source/libs/graph.js"
                                },
                                {
                                    "path": "source/libs/icons.js"
                                },
                                {
                                    "path": "source/libs/page-detect.js"
                                }
                            ]
                        }
                    },
                    {
                        "files": {
                            "nodes": [
                                {
                                    "path": "source/content.js"
                                },
                                {
                                    "path": "source/features/add-star-repo-hotkey.js"
                                }
                            ]
                        }
                    },
                    {
                        "files": {
                            "nodes": [
                                {
                                    "path": "source/content.css"
                                },
                                {
                                    "path": "source/features/add-diff-view-without-whitespace-option.js"
                                },
                                {
                                    "path": "source/features/add-profile-hotkey.js"
                                },
                                {
                                    "path": "source/features/add-releases-tab.js"
                                },
                                {
                                    "path": "source/features/add-trending-menu-item.js"
                                },
                                {
                                    "path": "source/features/improve-shortcut-help.js"
                                }
                            ]
                        }
                    },
                    {
                        "files": {
                            "nodes": [
                                {
                                    "path": "source/content.js"
                                },
                                {
                                    "path": "source/features/add-pr-branches.js"
                                },
                                {
                                    "path": "source/libs/page-detect.js"
                                },
                                {
                                    "path": "test/page-detect.js"
                                }
                            ]
                        }
                    },
                    {
                        "files": {
                            "nodes": [
                                {
                                    "path": "source/features/fix-squash-and-merge-title.js"
                                }
                            ]
                        }
                    },
                    {
                        "files": {
                            "nodes": [
                                {
                                    "path": "source/content.js"
                                },
                                {
                                    "path": "source/features/extend-file-types-filter.js"
                                }
                            ]
                        }
                    },
                    {
                        "files": {
                            "nodes": [
                                {
                                    "path": "source/features/mark-unread.js"
                                }
                            ]
                        }
                    }
                ]
            }
        }
    }
}

You can use the API v4 to get 100 PRs × 100 files at once, but for now it’s in preview/beta mode, you need a custom header:

Accept: application/vnd.github.ocelot-preview+json

Read more comments on GitHub >

github_iconTop Results From Across the Web

List opened PRs touching displayed file · Issue #1323 - GitHub
When viewing a file in master for instance, History can show what commits/PRs/tags where applied to it; acting as a lens to the...
Read more >
git - Can I get a list of all pull requests related to a specific file ...
I tried to search PRs using the file path on GitHub, but it didn't seem like file paths were indexed. Poking around a...
Read more >
Show pull requests on GitHub regarding a specific file or line
Is there a way to see all pull requests that change the regarding file or better yet the regarding line? ¹ E.g., take...
Read more >
GitHub NEW File Tree View in Pull Requests
GitHub PR Old View. It represents a list of changes that have been made to the files included in the Pull Request. ·...
Read more >
Identical code can show changes in PR when git history is ...
Identical codebases with different history can show changes in a PR ... to setup the repository: $ touch file-to-remove $ touch file-to-edit $...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found