ghrecipes
The goal of ghrecipes is to provide helper functions for usual GitHub data mining tasks, well at least the ones that are usual or useful for us. 😸 Please suggest and discuss new recipes in the issues tracker!
It usesGitHub V4 API queried thanks
to the ghql
package. Read more
about GitHub V4 API advantages
here. It
then formats results using the jqr
package, interface to
jq. Read an intro to jqr
power
here.
:rocket:
Installation
You can install ghrecipes from GitHub with:
# install.packages("devtools")
devtools::install_github("ropenscilabs/ghrecipes")
Examples
Don’t miss conversations by your favorite developers or comments by your favorite styling bot. In that function, only the latest results are returned, and an issue can be a PR.
ghrecipes::spy("lintr-bot", type = "Issue")
#> NULL
convos <- ghrecipes::spy("lintr-bot", type = "PullRequest")
knitr::kable(convos[1:10,])
owner | repo | title | created_at | state | author | url | no_comments | id |
---|---|---|---|---|---|---|---|---|
hbc | bcbioRNASeq | v0.2.3 | 2018-05-04 02:43:07 | OPEN | mjsteinbaugh | hbc/bcbioRNASeq#96 | 5 | 96 |
hbc | bcbioBase | v0.2.10 | 2018-05-03 14:33:45 | MERGED | mjsteinbaugh | hbc/bcbioBase#34 | 3 | 34 |
hbc | bcbioSingleCell | v0.1.5 | 2018-05-02 16:26:31 | MERGED | mjsteinbaugh | hbc/bcbioSingleCell#51 | 5 | 51 |
PredictiveEcology | SpaDES.tools | Fixed issue with empty CHECKSUMS.txt | 2018-04-27 06:43:49 | MERGED | CeresBarros | PredictiveEcology/SpaDES.tools#28 | 2 | 28 |
Azure | doAzureParallel | Enable AAD and VNet Support | 2018-04-17 18:50:14 | MERGED | brnleehng | Azure/doAzureParallel#252 | 3 | 252 |
ropensci | drake | add arg ‘sanitize_targets’ to ‘build_drake_graph()’ | 2018-03-24 22:03:28 | CLOSED | ChrisMuir | ropensci/drake#342 | 6 | 342 |
mlr-org | mlr | Oneclass r learner h2o - for INTERNAL REVIEW - DONT MERGE | 2017-05-24 14:47:05 | OPEN | berndbischl | mlr-org/mlr#1807 | 2 | 1807 |
NA | NA | NA | NA | NA | NA | NA | NA | NA |
NA | NA | NA | NA | NA | NA | NA | NA | NA |
NA | NA | NA | NA | NA | NA | NA | NA | NA |
Use cases in the wild
Add your use case to the list by opening an issue !
Nice words
Both the package actual use and its source code have been very useful to me in understanding graphQL and the Github API. Thanks @ma_salmon! https://t.co/i8KUAMGfsn
— Christian Minich (@ChristianNolan) 29 d’abril de 2018
Meta
Please note that this project is released with a Contributor Code of Conduct.
By participating in this project you agree to abide by its terms.