I have a main repository “mainrepo” and it has multiple folders (one of them is “subfolder3” but I need a list of PRs within a folder inside the main repository.
I tried using GET /repos/{owner}/{repo}/pulls?state=closed&base=subfoldername
I have a main repository “mainrepo” and it has multiple folders (one of them is “subfolder3” but I need a list of PRs within a folder inside the main repository.
I tried using GET /repos/{owner}/{repo}/pulls?state=closed&base=subfoldername
Copyright © 2021 Jogjafile Inc.
You can use the GitHub CLI to get a list of all closed PR, list them with URL, title, and list of modified files, and then use a jq query to filter for only those that touch the relevant directory:
This return an array of objects, like this: