Skip to content

Add functionality for milestones #58

@konradmayer

Description

@konradmayer

Thanks a lot for this great package!

This is a feature request for adding functionality for milestones to the package.

Being able to retreive milestones (besides issues) renders very powerful applications for project management possible - e.g. automated creation of Gantt charts using DiagrammeR.

I altereted your gl_list_issues() function for a quick try and it worked flawlessly, so it shouldn't be too much work to implement it as it basically boils down to mimic the issue functions.

gl_list_milestones <- function (project = NULL, milestone_id = NULL, verb = httr::GET, 
          api_version = 4, ...) 
{
  (if (!missing(project) && is.null(project)) 
    "milestones"
    else gl_proj_req(project, req = c("milestones", milestone_id), ...)) %>% 
    gitlab(...) %>% arpr::iffn(is.null(milestone_id), function(milestone) {
      milestone %>% unlist(recursive = TRUE) %>% t() %>% as.data.frame()
    })
}

In case I ever find the time for it I would be more than happy to contribute a PR on this issue, but I cannot give any estimate on when this might be...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions