vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Show counter of issues/PRs

Open OleksandrKvl opened this issue 2 years ago • 1 comments

It would be nice to have counter badge on each panel (and sub-panel) for issues and PRs. I don't know if you load them all at once or in a lazy fashion. If latter is the case, you probably cannot show total number of issues/PRs but you can show them for each sub-panel when you get the list. It's related to #405 but that was closed without a good reason and didn't mention issue-related counters.

OleksandrKvl avatar Jun 28 '22 16:06 OleksandrKvl

We could probably just get a count cheaply without having to load all the PRs.

alexr00 avatar Jun 29 '22 13:06 alexr00

We use the badge for PR notifications now, so having it also be for PR count would be overloading it. If there's some value you'd get from having a PR count in your editor please do comment and we can discuss other ways this could be done.

alexr00 avatar Dec 09 '22 12:12 alexr00

You mean that you have badge on the icon of the extension in the side bar? I meant a different thing, something like this. I currently use this extension for my own private project which doesn't have PRs, just a linear kind of development but it would be useful for me to see a number of opened issues. Similar counters can be provided for PR panel as well. Ideally, it should be configurable which counter is reflected on the extension icon.

OleksandrKvl avatar Dec 13 '22 16:12 OleksandrKvl

it would be useful for me to see a number of opened issues

Can you explain why it's useful to know these numbers? We don't lazily load issues, so we could add something there, but we do lazily load PRs as there's a lot more data there and they aren't used for anything else (we eagerly load the issues so that you can get autocompletions when you type #).

Maybe this will also help you: we now remember your expand/collapse state for the queries in the PRs view, so it might already be nice and scannable for you already.

alexr00 avatar Dec 14 '22 11:12 alexr00

Can you explain why it's useful to know these numbers?

In my particular case a list of issues reflects the development of the project, it's basically a list of features I need to implement. Knowing their number helps to estimate overall progress. It's similar to a github web interface where we have number of issues and PRs at the top. If you are asking about per-type counter, here's another example. In a large project, a person might not be interested in a total number of PRs but in a number of PRs to which they is assigned to or which are waiting for their review. Actually I've just realized that I forgot to add a counter to the whole "ISSUES" bar which was my original intent.

OleksandrKvl avatar Dec 14 '22 12:12 OleksandrKvl

Ok, I'll re-open. Thank you for the additional details!

alexr00 avatar Dec 14 '22 13:12 alexr00

Not sure if it goes the same way but it would be also great to have a "pending PR" that simply counts the PRs that are ready to review and shows them in the sidebar badge

chemalopezp avatar Apr 06 '23 19:04 chemalopezp