[
https://issues.apache.org/jira/browse/CB-5625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13888611#comment-13888611
]
Bas Bosman commented on CB-5625:
--------------------------------
I thought this one would be a nice one to get my feet wet.
{quote}
C:\GitHub\cordova-coho>coho list-pulls --help
Reports what GitHub pull requests are open for the given repositories.
Example usage: node C:\GitHub\cordova-coho\coho list-pulls -r auto -b master
Example usage: node C:\GitHub\cordova-coho\coho list-pulls -r plugins -b dev
Please note that GitHub rate limiting applies. See
http://developer.github.com/v3/#rate-limiting for details.
Options:
-h, --help Shows help information.
-r, --repo Which repos to operate on. Multiple flags allowed. This can be
repo IDs or repo groups. Use the list-repos command see valid values.
[default: "auto"]
-b, --branch The name of the branch to check. Can be specified multiple
times to specify multiple branches.
[default: "master"]
{quote}
Sample output:
{quote}
C:\GitHub\cordova-coho>coho list-pulls -r cordova-coho
.// ========================== Found 2 Pull Requests for repo "cordova-coho"
and branch "master"
-----------------------------------------------------------------------------------------------
Pull Request number 13 for cordova-coho on branch master (Last modified:
2014-02-01T14:23:37Z)
-----------------------------------------------------------------------------------------------
Title: CB-5625 Show open Pull Requests on GitHub
Author: BBosman
Url: https://api.github.com/repos/apache/cordova-coho/pulls/13
-----------------------------------------------------------------------------------------------
Pull Request number 10 for cordova-coho on branch master (Last modified:
2013-12-13T14:49:24Z)
-----------------------------------------------------------------------------------------------
Title: CB-5312 Support github.com/apache repositories
Author: jsoref
Url: https://api.github.com/repos/apache/cordova-coho/pulls/10
{quote}
Pull request: https://github.com/apache/cordova-coho/pull/13
> Add coho command for listing outstanding pull requests
> ------------------------------------------------------
>
> Key: CB-5625
> URL: https://issues.apache.org/jira/browse/CB-5625
> Project: Apache Cordova
> Issue Type: New Feature
> Components: Coho
> Reporter: Andrew Grieve
> Assignee: Bas Bosman
> Priority: Minor
>
> Github has an API: http://developer.github.com/v3/pulls/
> Would be nice to have one command that could list out the pull requests for
> all repos, sorted by last updated.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)