Skip to content

Commit

Permalink
add get.gist.forks
Browse files Browse the repository at this point in the history
this was probably missed because it's the same URL as forking
but a get instead of a push.
  • Loading branch information
gordonwoodhull committed Jun 6, 2016
1 parent b4aaa23 commit fb0d5cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: github
Type: Package
Title: github API
Version: 0.9.7
Version: 0.9.8
Author: Carlos Scheidegger <cscheid@research.att.com>
Maintainer: Carlos Scheidegger <cscheid@research.att.com>
Description: Provides access to the Github v3 API
Expand Down
10 changes: 10 additions & 0 deletions R/gists.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ is.starred <- function(id, ctx = get.github.context())
fork.gist <- function(id, ctx = get.github.context())
.api.post.request (ctx, c("gists", id, "forks"))

#' list the forks of a gist
#'
#' @param id the gist id
#'
#' @param ctx the github context object
#'
#' @return the list of fork information
get.gist.forks <- function(id, ctx = get.github.context())
.api.get.request (ctx, c("gists", id, "forks"))

#' delete a gist
#'
#' @param id the gist id
Expand Down

0 comments on commit fb0d5cc

Please sign in to comment.