Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ Fork repository. This operation runs asynchronously. You may want to poll for `r
repo.fork(function(err) {});
```

List Forks.

```js
repo.listForks(function(err, forks) {});
```

Create new branch for repo. You can omit oldBranchName to default to "master".

```js
Expand Down
9 changes: 8 additions & 1 deletion github.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
if (err) {
return cb(err);
}

cb(null, tags);
});
};
Expand Down Expand Up @@ -543,6 +543,13 @@
_request("POST", repoPath + "/forks", null, cb);
};

// List forks
// --------

this.listForks = function(cb) {
_request("GET", repoPath + "/forks", null, cb);
};

// Branch repository
// --------

Expand Down