-
Notifications
You must be signed in to change notification settings - Fork 7
Count votes? #6
Comments
oh nice one. I'll have a look. I think it'll involve iterating twice (issues, and then reactions). I'm not sure one can ask for a number of reactions, that'd be cool, but I believe it'll first involve getting all reactions. |
you'd want that only for opened issues right? |
Hey by hand one can sort issues by reaction in a repo isaacs/github#600, I had no idea! (but I'll still investigate the API solution of course) |
😢 not possible here to directly sort issues by +1 https://developer.github.com/v4/enum/issueorderfield/ |
Awesome, I haven't even looked there! This solves the problem for me, feel free to close. A recipe would be even nicer, of course! Thanks a lot! |
I haven't found how to exclude issues without reactions from the GUI. |
I got the query 😎 query{
repository(owner: "tidyverse", name: "dplyr"){
issues(first: 100, states: OPEN){
edges{
node{
number
title
reactions(content: THUMBS_UP){
totalCount
}
}
}
}
}
} recipe to come |
@krlmlr what would you want by issue on top on their thumbs up count, title and issue number? a direct link, the body? should the function also filter for thumbs up count > 0? |
maybe labels and assignees? |
A link would be awesome, maybe the first paragraph (or 300 characters) of the body? Labels would be great, too. A filter for count > 0 would be useful, that's the only thing I can't seem to do from the GUI. But that's easy enough to do when postprocessing. How do we order by number of reactions? |
oh and milestones? How would you use the recipe, would you currently look at the output in say the viewer of RStudio? (I guess in the future different teams could build different dashboard based on recipes)
I guess I could arrange by decreasing order before outputting the table. I could also add a parameter filter_null. |
Thanks. Is the order still correct when you have I'd run it in RStudio for now. |
Oh in the actual recipe I'll iterate over all open issues, not only the first 100 :-) Ok! |
There's now As you see I currently handle labels in a bad way because I don't know yet how to paste them together with a separator. I also need to add assignees. And tell me anything that's wrong 😉 |
Note: When R CMD check the package examples all fail because I apparently handle .onLoad badly, but other than that it should work. |
Oh and I'm not sure how to make URL clickable from RStudio Viewer? |
Thanks, works for me! I don't know about Don't know about clickable URLs either. I couldn't load the package without setting the |
Thanks! No need for assignees in your case?
I know right?!
Yes I need to re-think the way I define the client. Now the check passes but see #10 I could/should change the name of the environment variable because @jeroen told me it works with the usual |
Reg having the clickable URL, I think one would only need to knit a report, in which the data.frame would be formatted like I do at the end of http://www.masalmon.eu/2018/03/04/hrbrpkgs/ |
Archiving this repo as I do not have the opportunity to work on this package at the moment. https://devguide.ropensci.org/curationpolicy.html#incubator-packages |
I've seen a few issues with a considerable number of votes in the dplyr repo. What's the best way to retrieve the issues most voted for?
The text was updated successfully, but these errors were encountered: