File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,37 @@ var github = new Github({
3030var repo = github .getRepo (username, reponame);
3131```
3232
33+ Show repository information
34+
35+ ``` js
36+ repo .show (function (err , repo ) {});
37+ ```
38+
39+ Get contents at a particular path.
40+
41+ ``` js
42+ repo .contents (" path/to/dir" , function (err , contents ) {});
43+ ```
44+
45+ Fork repository. This operation runs asynchronously. You may want to poll for ` repo.contents ` until the forked repo is ready.
46+
47+ ``` js
48+ repo .fork (function (err ) {});
49+ ```
50+
51+ Create Pull Request.
52+
53+ ``` js
54+ var pull = {
55+ title: message,
56+ body: " This pull request has been automatically generated by Prose.io." ,
57+ base: " gh-pages" ,
58+ head: " michael" + " :" + " prose-patch" ,
59+ };
60+ repo .createPullRequest (pull, function (err , pullRequest ) {});
61+ ```
62+
63+
3364Retrieve all available branches (aka heads) of a repository.
3465
3566``` js
You can’t perform that action at this time.
0 commit comments