I could integrate my GitHub with Visual Studio Code. I can see all my open PR's and issues in Visual Studio Code. But my requirement here is that I am not able to see my closed PR's. Is there any solution for this.
I have tried editing settings.json
with githubPullRequests.queries
as below.
,{
"label": "Closed PR'S",
"query": "is:closed mentions:${user}"
}
But it is showing 0 pull requests. But I have some closed pull requests that are available in GitHub. Could anyone please suggest other way.
CodePudding user response:
This is followed by the GitHub Pull Requests and Issues VSCode extension, and its CHANGELOG
.
It includes:
To customize the pull request tree, you can use the
githubPullRequests.queries
setting.
This setting is a list of labels and search queries which populate the categories of the tree.By default, these queries are "
Waiting For My Review
", "Assigned To Me
", and "Created By Me
".
An example of adding a "Mentioned Me
" category is to change the setting to the following:
"githubPullRequests.queries": [
{
"label": "Waiting For My Review",
"query": "is:open review-requested:${user}"
},
{
"label": "Assigned To Me",
"query": "is:open assignee:${user}"
},
{
"label": "Created By Me",
"query": "is:open author:${user}"
},
{
"label": "Mentioned Me",
"query": "is:open mentions:${user}"
}
]
You should be able to add a "my Closed PRs" section.
{
"label": "My Closed PRs",
"query": "is:closed assignee:${user}"
}
The OP SASI reports in the comments:
Actually I removed
users
and only usedis:closed
{
"label": "My Closed PRs",
"query": "is:closed"
}