Sha256: 1638e4880320c8797a7a8c20c9d9fc87d7bf47c77f08f6ddbccf5b00938a9006

Contents?: true

Size: 584 Bytes

Versions: 5

Compression:

Stored size: 584 Bytes

Contents

# encoding: utf-8

module Github
  class Repos
    module Forks
      
      # List forks 
      #
      # GET /repos/:user/:repo/forks
      #
      # Examples
      #
      def forks(user, repo)
        get("/repos/#{user}/#{repo}/forks")
      end
      
      # Create a fork for the authenticated user
      # 
      # POST /repos/:user/:repo/forks
      #
      def create_fork(user, repo, params={})
        _normalize_params_keys(params)
        _filter_params_keys(%w[ org ], params)

        post("/repos/#{user}/#{repo}/forks", params)
      end
    end
  end
end # Github

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
github_api-0.2.0 lib/github_api/repos/forks.rb
github_api-0.1.2 lib/github_api/repos/forks.rb
github_api-0.1.1 lib/github_api/repos/forks.rb
github_api-0.1.0 lib/github_api/repos/forks.rb
github_api-0.1.0.pre lib/github_api/repos/forks.rb