Skip to contents

Retrieve only pull requests from a repository.

Usage

get_pullrequests(repository, issue = NULL)

Arguments

repository

A character of repository "owner/repo".

issue

The number of the issue

Value

A data.frame with the information of the pr

See also

get_comments() As they are also listed there.

Examples

get_pullrequests("llrs/BioCor", 27)
#>   assignees assignee label  state locked milestone
#> 1        NA       NA       closed  FALSE          
#>                                  title             created             updated
#> 1 Adding logo/hex sticker (closes #15) 2020-02-04 09:53:56 2020-02-04 10:04:19
#>                closed              merged requested_reviewer draft association
#> 1 2020-02-04 09:56:05 2020-02-04 09:56:05                 NA FALSE CONTRIBUTOR
#>              merger maintainer_can_modify n_commits additions deletions
#> 1 llrs, User, FALSE                 FALSE         2       366         2
#>   changed_files     text id              submitter
#> 1             4 See #15  27 davidmasp, User, FALSE
get_pullrequests("llrs/BioCor")
#>   assignees assignee label  state locked milestone
#> 1        NA       NA       closed  FALSE          
#> 2        NA       NA       closed  FALSE          
#>                                  title             created             updated
#> 1 Adding logo/hex sticker (closes #15) 2020-02-04 09:53:56 2020-02-04 10:04:19
#> 2                  Improve class check 2020-02-03 11:22:27 2020-02-03 12:55:54
#>                closed              merged requested_reviewer draft association
#> 1 2020-02-04 09:56:05 2020-02-04 09:56:05                 NA FALSE CONTRIBUTOR
#> 2 2020-02-03 12:50:22 2020-02-03 12:50:22                 NA FALSE       OWNER
#>   merger maintainer_can_modify
#> 1     NA                    NA
#> 2     NA                    NA
#>                                                   n_commits additions deletions
#> 1 https://api.github.com/repos/llrs/BioCor/pulls/27/commits        NA        NA
#> 2 https://api.github.com/repos/llrs/BioCor/pulls/26/commits        NA        NA
#>   changed_files       text id              submitter
#> 1            NA   See #15  27 davidmasp, User, FALSE
#> 2            NA Closes #25 26      llrs, User, FALSE